コード例 #1
0
        public ServerCallFilterHandlerFactory(
            IServiceProvider serviceProvider,
            MethodInfo contractMethodDefinition,
            Func <IServiceProvider, IServerFilter>[] filterFactories)
        {
            ServiceProvider          = serviceProvider;
            ContractMethodDefinition = contractMethodDefinition;
            FilterFactories          = filterFactories;
            _getServiceMethodInfo    = GetServiceMethodInfo;

            var proxyFactory = new ProxyFactory(contractMethodDefinition);

            _requestMessageProxy  = proxyFactory.RequestProxy;
            _responseMessageProxy = proxyFactory.ResponseProxy;
            _requestStreamProxy   = proxyFactory.RequestStreamProxy;
            _responseStreamProxy  = proxyFactory.ResponseStreamProxy;
        }
コード例 #2
0
 public ResponseContext(MessageProxy messageProxy, StreamProxy?streamProxy)
 {
     _messageProxy = messageProxy;
     _streamProxy  = streamProxy;
 }
コード例 #3
0
 public void BeforeEachTest()
 {
     _message = new Message <string, int>();
     _sut     = new MessageProxy(new[] { "p1", "p2" }, _message.GetType());
 }
コード例 #4
0
 public RequestContext(MessageProxy messageProxy, StreamProxy?streamProxy)
 {
     _messageProxy = messageProxy;
     _streamProxy  = streamProxy;
 }