コード例 #1
0
ファイル: Oprations_Async.cs プロジェクト: monsajem/Incs
        public async Task Stop()
        {
#if DEBUG
            Client.AddDebugInfo("End.");
#endif
            await Client.Disconncet();
        }
コード例 #2
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();
        }