Пример #1
0
        private async void _shutdown()
        {
            try
            {
                if (IsJoin)
                {
                    await _chatHub.LeaveChat();
                }
            }
            catch
            {
                // ignored
            }

            try
            {
                await _chatHub.DisposeAsync();
            }
            catch (Exception e)
            {
                // ignored
            }
        }