Exemple #1
0
        private bool onThemesError(CatalogServiceEvents.CurrentThemesErrorEvent evt)
        {
            CatalogCacheData cacheDataById = cache.GetCacheDataById("CatalogThemeCacheId");

            if (cacheDataById.Data == null)
            {
                cacheDataById.Data = new List <CurrentThemeData>();
            }
            Service.Get <EventDispatcher>().DispatchEvent(new CatalogServiceProxyEvents.ChallengesReponse(cacheDataById.Data as List <CurrentThemeData>));
            return(false);
        }
 private bool onCurrentThemesErrorEvent(CatalogServiceEvents.CurrentThemesErrorEvent evt)
 {
     Service.Get <PromptManager>().ShowPrompt("CatalogItemRetrievalErrorPrompt", null);
     return(false);
 }
 private void onCurrentThemesError(GetCurrentThemeOperation operation, HttpResponse response)
 {
     CatalogServiceEvents.CurrentThemesErrorEvent evt = new CatalogServiceEvents.CurrentThemesErrorEvent(response);
     Service.Get <EventDispatcher>().DispatchEvent(evt);
 }