Table of Contents

Class OfflineFileCache

Namespace
Microsoft.Extensions.Configuration.AzureAppConfiguration
Assembly
Microsoft.Extensions.Configuration.AzureAppConfiguration.dll

An offline cache provider for Azure App Configuration that uses the file system to store data.

public class OfflineFileCache : IOfflineCache
Inheritance
OfflineFileCache
Implements
Inherited Members

Constructors

OfflineFileCache(OfflineFileCacheOptions)

A cache used for storing Azure App Configuration data using the file system. Supports encryption of the stored data.

public OfflineFileCache(OfflineFileCacheOptions options = null)

Parameters

options OfflineFileCacheOptions

Options dictating the behavior of the offline cache. If the options are null or the encryption keys are omitted, they will be derived from the store's connection string. Path is required unless the application is running inside of an Azure App Service instance, in which case it can be populated automatically.

Methods

Export(AzureAppConfigurationOptions, string)

An implementation of Export(AzureAppConfigurationOptions, string) that caches the data in the file system.

public void Export(AzureAppConfigurationOptions options, string data)

Parameters

options AzureAppConfigurationOptions
data string

Import(AzureAppConfigurationOptions)

An implementation of Import(AzureAppConfigurationOptions) that retrieves the cached data from the file system.

public string Import(AzureAppConfigurationOptions options)

Parameters

options AzureAppConfigurationOptions

Returns

string