Method AddNCacheDistributedCacheProvider
AddNCacheDistributedCacheProvider(IServiceCollection, Action<NCacheProviderConfiguration>)
Adds the NCache Provider to support multiple caches whose names is specified in the configuration as the standard distributed cache to be used by sessions.
Declaration
public static IServiceCollection AddNCacheDistributedCacheProvider(this IServiceCollection services, Action<NCacheProviderConfiguration> configure)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | Specifies the contract for a collection of service descriptors. |
Action<Alachisoft.NCache.Caching.Distributed.Configuration.NCacheProviderConfiguration> | configure | Action to configure NCacheProviderConfiguration. |
Returns
Type | Description |
---|---|
IServiceCollection | The service collection container. |
AddNCacheDistributedCacheProvider(IServiceCollection, IConfiguration)
Adds the NCache Provider to support multiple caches whose names is specified in the configuration as the standard distributed cache to be used by sessions.
Declaration
public static IServiceCollection AddNCacheDistributedCacheProvider(this IServiceCollection services, IConfiguration configSection)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | Specifies the contract for a collection of service descriptors. |
IConfiguration | configSection | The virtual path to the Json configuration file. |
Returns
Type | Description |
---|---|
IServiceCollection | The service collection container. |