コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
 protected abstract Task HandleCoreAsync(
     IIncomingInvocation <TRequest, TResponse> invocation,
     MethodCallContext context);