Ejemplo n.º 1
0
        private void postClientListItemUpdateHandler(ClientListUpdateCommand c)
        {
            _ActorState[c.Id] = c.ClientListItemData;
            _logger.Info($"Updated client list item Id{c.Id} UserName:{c.ClientListItemData.Name}.");
            ClientListUpdatedEvent message = new ClientListUpdatedEvent(c.ClientListItemData.Copy(), c.User, c.ConnectionId);

            NotifySubscribers(message);
            AutoSaveSnashot(false);
        }
Ejemplo n.º 2
0
        private void HandleClientUpdatedEvent(ClientUpdatedEvent e)
        {
            ClientState    cs = e.ResultClientState;
            ClientListItem newClientListItem = ClientListItem.GenerateClientListItemFromClientState(cs);

            ClientListUpdateCommand newCLUC = new ClientListUpdateCommand(newClientListItem, e.User, e.ConnectionId);

            _logger.Info($"Updating client list Id:{cs.Id} UserName:{cs.Name}.");
            Persist <ClientListUpdateCommand>(newCLUC, postClientListItemUpdateHandler);
        }
Ejemplo n.º 3
0
 private void UpdateClientListRecoveryCommand(ClientListUpdateCommand c)
 {
     _logger.Info($"Recovering update client list item Id:{c.Id} UserName:{c.ClientListItemData.Name}.");
     _ActorState[c.Id] = c.ClientListItemData;
     _logger.Info($"Recovered update client list item Id:{c.Id} UserName:{c.ClientListItemData.Name}.");
 }