public async Task Stop()
        {
#if DEBUG
            Client.WhyDisconnect = "End";
#endif
            await Client.Disconncet();
        }
Example #2
0
        public async Task Stop()
        {
#if DEBUG
            Client.AddDebugInfo("End.");
#endif
            await Client.Disconncet();
        }
Example #3
0
        public async Task Connect(AddressType Address,
                                  Func <IAsyncOprations, Task> Requestor)
        {
            await ClientSocket.Connect(Address);

            using (var rq = new AsyncOprations <AddressType>(ClientSocket, false))
            {
                await Requestor(rq);
            }
#if DEBUG
            ClientSocket.AddDebugInfo("end.");
#endif
            await ClientSocket.Disconncet();
        }