Class ServiceCollectionSessionExtensions
Contains session extension methods for IServiceCollection.
Inheritance
System.Object
ServiceCollectionSessionExtensions
Namespace:MyTested.AspNetCore.Mvc
Assembly:MyTested.AspNetCore.Mvc.Session.dll
Syntax
public static class ServiceCollectionSessionExtensions
Methods
| Improve this Doc View SourceReplaceSession(IServiceCollection)
Replaces the default Microsoft.AspNetCore.Session.ISessionStore with a mocked implementation.
Declaration
public static IServiceCollection ReplaceSession(this IServiceCollection serviceCollection)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.Extensions.DependencyInjection.IServiceCollection | serviceCollection | Instance of IServiceCollection type. |
Returns
Type | Description |
---|---|
Microsoft.Extensions.DependencyInjection.IServiceCollection | The same IServiceCollection. |