Method AddNCacheSession
AddNCacheSession(IServiceCollection, IConfigurationSection)
Adds services required for application session state using NCache.
Declaration
public static IServiceCollection AddNCacheSession(this IServiceCollection services, IConfigurationSection configSection)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | Specifies the contract for a collection of service descriptors. |
IConfigurationSection | configSection | The configuration section that contains the configuration. |
Returns
Type | Description |
---|---|
IServiceCollection | The service collection container. |
AddNCacheSession(IServiceCollection, Action<NCacheSessionConfiguration>)
Adds services required for application session state using NCache.
Declaration
public static IServiceCollection AddNCacheSession(this IServiceCollection services, Action<NCacheSessionConfiguration> configure)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | Specifies the contract for a collection of service descriptors. |
Action<Alachisoft.NCache.Web.SessionState.Configuration.NCacheSessionConfiguration> | configure | Action to configure an NCache Session Storage Service Configuration. |
Returns
Type | Description |
---|---|
IServiceCollection | The service collection container. |