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