Beispiel #1
0
        void Handle(UninstallActionCompleted message)
        {
            var gameState = Games[message.Game.Id].State;

            foreach (var c in message.UninstallLocalContentAction.Content)
            {
                ContentStatus cs;
                gameState.TryRemove(c.Content.Id, out cs);
            }
        }
 public void Handle(UninstallActionCompleted notification)
 {
     _hubContext.Value.Clients.All.ContentStateChanged(new ContentStateChange {
         GameId = notification.Game.Id,
         States =
             notification.UninstallLocalContentAction.Content.ToDictionary(x => x.Content.Id,
                                                                           x => {
             var lc        = x.Content as LocalContent;
             var state     = lc != null ? lc.MapTo <ContentStatus>() : x.Content.MapTo <ContentStatus>();
             state.State   = ItemState.NotInstalled;
             state.Version = null;
             return(state);
         })
     });
 }
 void Handle(UninstallActionCompleted message) {
     var gameState = Games[message.Game.Id].State;
     foreach (var c in message.UninstallLocalContentAction.Content) {
         ContentStatus cs;
         gameState.TryRemove(c.Content.Id, out cs);
     }
 }