Exemplo n.º 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;
        }
Exemplo n.º 2
0
 public ResponseContext(MessageProxy messageProxy, StreamProxy?streamProxy)
 {
     _messageProxy = messageProxy;
     _streamProxy  = streamProxy;
 }
Exemplo n.º 3
0
 public void BeforeEachTest()
 {
     _message = new Message <string, int>();
     _sut     = new MessageProxy(new[] { "p1", "p2" }, _message.GetType());
 }
Exemplo n.º 4
0
 public RequestContext(MessageProxy messageProxy, StreamProxy?streamProxy)
 {
     _messageProxy = messageProxy;
     _streamProxy  = streamProxy;
 }