Пример #1
0
        private void CloseAllUserSessions()
        {
            Console.Clear();
            Console.WriteLine("Please enter username for close his sessions:");

            try
            {
                var username = Console.ReadLine();

                _adminManagerClient.CloseAllUserSessions(username);
            }
            catch (Exception exp)
            {
                Console.WriteLine(exp);
            }
        }
Пример #2
0
 public async void CloseAllUserSessions(string username)
 {
     await Task.Run(() => _adminManager.CloseAllUserSessions(username));
 }