public static InnerResponseBuilder <TResult> RespondWith <TRequest, TResponse, TResult>(this IPipelineBehaviour <TRequest, TResponse, TResult> pipelineBehaviour)
     where TRequest : IRequest <TResponse>
     where TResponse : class, IResponse <TResult>
 {
     return(new InnerResponseBuilder <TResult>(pipelineBehaviour.GetType()));
 }
Exemplo n.º 2
0
 public static InvokeAsync <T> GetInvokeDelegate <T>(this IPipelineBehaviour <T> behaviour)
     where T : class
 => behaviour.InvokeAsync;