Ejemplo n.º 1
0
        public void Execute()
        {
            this.loggerService.RunWithExceptionLogging(() =>
            {
                this.tableDrawer.Show(clientManager.GetAllClients());
            });

            this.loggerService.Info("Readed all Clients from ClientBase");
        }
Ejemplo n.º 2
0
 public void Execute()
 {
     this.loggerService.RunWithExceptionLogging(() =>
     {
         outputDevice.Clear();
         outputDevice.WriteLine("Clients with 'Black' status:");
         tableDrawer.Show(clientManager.GetAllClients().Where(c => c.Balance < 0));
     });
     this.loggerService.Info($"Readed all clients with 'Black' status (balance < 0)");
 }
Ejemplo n.º 3
0
 public IEnumerable <Client> GetAllClients()
 {
     return(_clientManager.GetAllClients());
 }
Ejemplo n.º 4
0
 public List <Client> GetClients()
 {
     return(_clientManager.GetAllClients());
 }
        public async Task SendNotification(Job job)
        {
            var connectionIds = _clientManager.GetAllClients();

            await Clients.All.SendAsync("ReceiveNotification", job);
        }