public IncomingInvocation( IncomingInvocationDescriptor info, ITransportChannel channel, IProtocolImplementation protocol, IMarshaller <TRequest> requestMarshaller, IMarshaller <TResponse> responseMarshaller) : base(channel, protocol, responseMarshaller, requestMarshaller) { _log = LogManager.GetLogger <IncomingInvocation <TRequest, TResponse> >(channel.Id.ToString()); Info = info; _channel = channel; _protocol = protocol; }
public IIncomingInvocation <TRequest, TResponse> CreateAsync <TRequest, TResponse>(IncomingInvocationDescriptor info, ITransportChannel channel) { var invocation = new IncomingInvocation <TRequest, TResponse>( info, channel, _protocol, _marshaller.GetMarshaller <TRequest>(), _marshaller.GetMarshaller <TResponse>()); invocation.Start(); return(invocation); }