Exemplo n.º 1
0
 private CancellableAsyncRequestHandlerWrapper <TResponse> GetHandler <TResponse>(ICancellableAsyncRequest <TResponse> request)
 {
     return(GetHandler <CancellableAsyncRequestHandlerWrapper <TResponse>, TResponse>(request,
                                                                                      typeof(ICancellableAsyncRequestHandler <,>),
                                                                                      typeof(CancellableAsyncRequestHandlerWrapperImpl <,>)));
 }
Exemplo n.º 2
0
 private CancellableAsyncRequestHandlerWrapper GetHandler(ICancellableAsyncRequest request)
 {
     return(GetVoidHandler <CancellableAsyncRequestHandlerWrapper>(request,
                                                                   typeof(ICancellableAsyncRequestHandler <>),
                                                                   typeof(CancellableAsyncRequestHandlerWrapperImpl <>)));
 }
Exemplo n.º 3
0
 public virtual Task <TResponse> SendAsync <TResponse>(ICancellableAsyncRequest <TResponse> request, CancellationToken cancellationToken)
 {
     return(_mediator.SendAsync(request, cancellationToken));
 }
 public Task<TResponse> SendAsync<TResponse>(
     ICancellableAsyncRequest<TResponse> request, 
     CancellationToken cancellationToken)
 {
     throw new NotSupportedException("Cancellation not supported yet");
 }
Exemplo n.º 5
0
 public abstract Task <TResult> Handle(ICancellableAsyncRequest <TResult> message, CancellationToken cancellationToken);
Exemplo n.º 6
0
 public Task <TResponse> SendAsync <TResponse>(ICancellableAsyncRequest <TResponse> request, CancellationToken cancellationToken)
 {
     throw new NotImplementedException();
 }