private IMessageConnection MakeMessageConnection(IPrimitiveConnection conn) { return(new MessageConnection(conn, _commandDecoderFactory)); }
public void Deconstruct(out string seed, out IPrimitiveConnection connection) { seed = Seed; connection = Connection; }
public SeededPrimitiveConnection(string seed, IPrimitiveConnection connection) { Seed = seed; Connection = connection; }
/// <summary> /// Constructs a <see cref="MessageConnection"/> on top of the given /// BapsNet primitive handlers. /// </summary> /// <param name="connection">The primitive connection used to receive commands.</param> /// <param name="commandDecoderFactory"> /// A function that produces command decoders appropriate for the /// role of this connection (client or server). /// </param> public MessageConnection(IPrimitiveConnection connection, Func <IPrimitiveSource, CancellationToken, CommandDecoder> commandDecoderFactory) { _receiver = CreateReceiver(connection, commandDecoderFactory); _sender = new Sender(connection); }