private void CloseSessionByGuid() { Console.Clear(); Console.WriteLine("Please enter session guid for close:"); try { var guid = new Guid(Console.ReadLine()); _adminManagerClient.CloseSessionByGuid(guid); Console.WriteLine("Session {0} is closed", guid); } catch (Exception exp) { Console.WriteLine(exp); } }
public async void CloseSessionByGuid([FromBody] Guid guid) { await Task.Run(() => _adminManager.CloseSessionByGuid(guid)); }