public async Task Stop() { #if DEBUG Client.WhyDisconnect = "End"; #endif await Client.Disconncet(); }
public async Task Stop() { #if DEBUG Client.AddDebugInfo("End."); #endif await Client.Disconncet(); }
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(); }