Interface IDtoService
- Namespace
- DMediatR
- Assembly
- DMediatR.dll
Code-first gRPC service for sending a MediatR IRequest to the remote IRequestHandler.
[ServiceContract]
public interface IDtoService
Methods
PublishAsync(Dto, CallContext)
[OperationContract]
Task PublishAsync(Dto notification, CallContext context = default)
Parameters
notificationDtocontextCallContext
Returns
SendAsync(Dto, CallContext)
[OperationContract]
Task<Dto> SendAsync(Dto request, CallContext context = default)
Parameters
requestDtocontextCallContext