protected override async Task HandleCoreAsync(IIncomingInvocation <TRequest, TResponse> invocation, MethodCallContext context) { TRequest request = default; await invocation.In.ConsumeAsync(x => request = x).ConfigureAwait(false); await _handler(request, invocation.Out, context).ConfigureAwait(false); }
protected override async Task HandleCoreAsync(IIncomingInvocation <TRequest, TResponse> invocation, MethodCallContext context) { var response = await _handler(invocation.In, context).ConfigureAwait(false); await invocation.Out.WriteAsync(response).ConfigureAwait(false); }
protected abstract Task HandleCoreAsync( IIncomingInvocation <TRequest, TResponse> invocation, MethodCallContext context);