Пример #1
0
        private void Dispose(bool disposing)
        {
            if (this.isDisposed)
                return;

            if (disposing)
            {
                this.client.Dispose();
            }
            this.client = null;
            this.isDisposed = true;
        }
Пример #2
0
 public WarlockClient(IPAddress address, ushort port)
 {
     client = new Client();
     client.ConnectAsync(address, port).ContinueWith((t) => this.StartReceiving()); ;
 }