public MessagingSendProcessor( ITransmissionConnection connection, ITransportProtocolSerializer serializer) { Id = connection.Id; _log = LogManager.GetLogger <MessagingSendProcessor>(Id.ToString()); _serializer = serializer; Out = new PropagatingChannel <TransportMessage, IPooledBuffer>(3, connection.Out, SendAsync, Dispose); Out.Completion.LogCompletion(_log); }
public TransportSendProcessor( ITransmissionConnection connection, ITransportHeaderFactory transportHeaderFactory, ITransportProtocolSerializer serializer) { _sendProcessor = new MessagingSendProcessor(connection, serializer); _transportHeaderFactory = transportHeaderFactory; _log = LogManager.GetLogger <TransportSendProcessor>(_sendProcessor.Id.ToString()); Out = new PropagatingChannel <ChannelMessage, TransportMessage>( 3, _sendProcessor.Out, OpenConnectionAsync, SendAsync, CloseConnectionAsync, CloseConnectionAsync, Dispose); Out.Completion.LogCompletion(_log); }