public ClientConnection(MessageEnvelope envelope, INetworkTransport client) { this.client = client; Envelope = envelope; ClientId = Guid.NewGuid(); }
public static ClientConnection CreateClientConnection(MessageEnvelope envelope, INetworkTransport client) { ClientConnection connection = new ClientConnection(envelope, client); connection.StartReceiveThread(); return connection; }