示例#1
0
        public override async Task ProcessAsync(PipelineCallContext context)
        {
            var socketTransportContext = context as SocketClientContext;

            if (socketTransportContext == null)
            {
                throw new InvalidOperationException("the context is not compatible with the transport");
            }
            await socketTransportContext.ProcessAsync().ConfigureAwait(false);
        }
 public PipelineCallOptions(PipelineCallContext context)
 => _context = context;
示例#3
0
 public ServiceResponse(PipelineCallContext context)
 => _context = context;