DataServiceResponder class

Implemented types

Constructors

DataServiceResponder({required IDataRepository repository, bool disposeRepositoryOnClose = true, Iterable<String> allowedBearerTokens = const [], required RpcDataTransferMode transferMode, int importAckEveryChunks = 32})

Properties

dataTransferMode → RpcDataTransferMode
finalinherited
hashCode int
The hash code for this object.
no setterinherited
methods Map<String, RpcMethodRegistration<IRpcSerializable, IRpcSerializable>>
Получает зарегистрированные методы
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serviceName String
finalinherited
zeroCopyMethods Map<String, RpcZeroCopyMethodRegistration<Object, Object>>
Получает зарегистрированные zero-copy методы
no setterinherited

Methods

addBidirectionalMethod<TRequest extends Object, TResponse extends Object>({required String methodName, required Stream<TResponse> handler(Stream<TRequest>, {RpcContext? context}), IRpcCodec<TRequest>? requestCodec, IRpcCodec<TResponse>? responseCodec, String description = ''}) → void
🚀 Универсальная регистрация двунаправленного стрима с автоматическим определением режима
inherited
addClientStreamMethod<TRequest extends Object, TResponse extends Object>({required String methodName, required Future<TResponse> handler(Stream<TRequest>, {RpcContext? context}), IRpcCodec<TRequest>? requestCodec, IRpcCodec<TResponse>? responseCodec, String description = ''}) → void
🚀 Универсальная регистрация клиентского стрима с автоматическим определением режима
inherited
addServerStreamMethod<TRequest extends Object, TResponse extends Object>({required String methodName, required Stream<TResponse> handler(TRequest, {RpcContext? context}), IRpcCodec<TRequest>? requestCodec, IRpcCodec<TResponse>? responseCodec, String description = ''}) → void
🚀 Универсальная регистрация серверного стрима с автоматическим определением режима
inherited
addUnaryMethod<TRequest extends Object, TResponse extends Object>({required String methodName, required Future<TResponse> handler(TRequest, {RpcContext? context}), IRpcCodec<TRequest>? requestCodec, IRpcCodec<TResponse>? responseCodec, String description = ''}) → void
🚀 Универсальная регистрация унарного метода с автоматическим определением режима
inherited
dispose() Future<void>
Освобождает ресурсы контракта при разрегистрации
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setup() → void
Декларативная регистрация методов
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited