C# Class Microsoft.Extensions.DependencyInjection.AzureTableStorageCacheExtensions

Exibir arquivo Open project: TerribleDev/AzureTableStorageCache

Public Methods

Method Description
AddAzureTableStorageCache ( this services, string connectionString, string tableName, string partitionKey ) : IServiceCollection

Add azure table storage cache as an IDistributedCache to the service container

AddAzureTableStorageCache ( this services, string accountName, string accountKey, string tableName, string partitionKey ) : IServiceCollection

Add azure table storage cache as an IDistributedCache to the service container

Private Methods

Method Description
checkTableData ( string tableName, string partitionkey ) : void

Method Details

AddAzureTableStorageCache() public static method

Add azure table storage cache as an IDistributedCache to the service container
public static AddAzureTableStorageCache ( this services, string connectionString, string tableName, string partitionKey ) : IServiceCollection
services this
connectionString string The connection string of your account (can be found in the preview portal)
tableName string the name of the table you wish to use. If the table doesn't exist it will be created.
partitionKey string the partition key you would like to use
return IServiceCollection

AddAzureTableStorageCache() public static method

Add azure table storage cache as an IDistributedCache to the service container
public static AddAzureTableStorageCache ( this services, string accountName, string accountKey, string tableName, string partitionKey ) : IServiceCollection
services this
accountName string the name of your storage account
accountKey string the key of your storage account
tableName string the name of the table you wish to use. If the table doesn't exist it will be created.
partitionKey string the partition key you would like to use
return IServiceCollection