public ChannelPairing(IActiveChannel external, IConnection connection, ListenerForProxying parent) { _external = external.Required(nameof(external)); _parent = parent.Required(nameof(parent)); _tagAsILInt = new ReadOnlySequence <byte>(connection.MessageTag.AsILInt()); _proxied = connection.AllocateChannel(this); }
public LivenessListener(IConnection client, Client clientProcessor) { _clientProcessor = clientProcessor; Start(client.AllocateChannel(this)); }