コード例 #1
0
        private async Task Disconnect()
        {
            var tcs = new TaskCompletionSource <bool>();

            SendBirdClient.Disconnect(() =>
            {
                tcs.SetResult(true);
            });

            await tcs.Task;
        }
コード例 #2
0
        public void Disconnect()
        {
            LogMessage("Disconnecting - current status " + SendBirdClient.GetConnectionState().ToString());

            SendBirdClient.Disconnect(() => {
                LogMessage("OnDisconnect");
                _completionHandler.OnDisconnect(
                    SendBirdClient.GetConnectionState() == SendBirdClient.ConnectionState.CLOSING ||
                    SendBirdClient.GetConnectionState() == SendBirdClient.ConnectionState.CLOSED
                    );
            });
        }
コード例 #3
0
 public void DisconnectMessenger()
 {
     SendBirdClient.Disconnect(null);
 }
コード例 #4
0
 public void Disconnect()
 {
     SendBirdClient.Disconnect(() =>
     {
     });
 }