Esempio n. 1
0
 public static void FullReload(this IAppCache cache)
 {
     log.Info("Full cache reload");
     // TODO: Maybe divide this function in to more granularity
     cache.ClearSipAccounts();
     cache.ClearRegisteredUserAgents(); // Make sure that this one is cleared if user agents change
     cache.ClearOngoingCalls();
     cache.ClearCallHistory();
     cache.ClearLocationNetworks();
     cache.ClearSettings();
     cache.ClearAvailableFilters();
     cache.ClearProfiles();
     cache.ClearProfileGroups();
     cache.ClearUserAgents();
 }
 public void Save(Profile profile)
 {
     _internalRepository.Save(profile);
     _lazyCache.ClearProfiles();
 }