public AuditSink() { try { _offlineCache = (IOfflineCache <Guid, AuditEntryInfo>)(new EnterpriseAuditSinkOfflineCacheExtensionPoint()).CreateExtension(); } catch (NotSupportedException) { Platform.Log(LogLevel.Debug, SR.ExceptionOfflineCacheNotFound); } }
public EnterpriseSettingsStore() { try { _offlineCache = (IOfflineCache <ConfigurationDocumentKey, string>)(new EnterpriseSettingsStoreOfflineCacheExtensionPoint()).CreateExtension(); } catch (NotSupportedException) { Platform.Log(LogLevel.Debug, SR.ExceptionOfflineCacheNotFound); _offlineCache = new NullOfflineCache <ConfigurationDocumentKey, string>(); } }
public EnterpriseTimeProvider() { _lastSuccessfulResyncInLocalTime = DateTime.MinValue; _lastAttemptedResyncInLocalTime = DateTime.MinValue; _resyncPeriod = new TimeSpan(0, 0, 60); _maxTimeBetweenSync = new TimeSpan(0, 10, 0); try { _offlineCache = (IOfflineCache <string, string>)(new EnterpriseTimeProviderOfflineCacheExtensionPoint()).CreateExtension(); } catch (NotSupportedException) { Platform.Log(LogLevel.Debug, SR.ExceptionOfflineCacheNotFound); _offlineCache = new NullOfflineCache <string, string>(); } }
/// <summary> /// Use an offline file cache to store Azure App Configuration data or retrieve previously stored data during offline periods. /// </summary> /// <param name="offlineCache">The offline file cache to use for storing/retrieving Azure App Configuration data.</param> public AzureAppConfigurationOptions SetOfflineCache(IOfflineCache offlineCache) { OfflineCache = offlineCache ?? throw new ArgumentNullException(nameof(offlineCache)); return(this); }