예제 #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;
 }