public DotNetClient(ClientConfiguration config) : base(config) { this._messageQueue = new MessageQueue <T>(this); if (config.Method == TransmissionType.UnreliableUnordered) { this._client = new Udp.Client(config); } if (config.Method == TransmissionType.ReliableOrdered) { this._client = new Tcp.Client(config); } this._client.OnReceive += this._messageQueue.OnReceive; }