private void Dispose(bool disposing) { if (this.isDisposed) return; if (disposing) { this.client.Dispose(); } this.client = null; this.isDisposed = true; }
public WarlockClient(IPAddress address, ushort port) { client = new Client(); client.ConnectAsync(address, port).ContinueWith((t) => this.StartReceiving()); ; }