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())); }
public static InvokeAsync <T> GetInvokeDelegate <T>(this IPipelineBehaviour <T> behaviour) where T : class => behaviour.InvokeAsync;