Class ServiceCollectionOptionsExtensions
Contains options extension methods for IServiceCollection.
Inheritance
System.Object
ServiceCollectionOptionsExtensions
Namespace:MyTested.AspNetCore.Mvc
Assembly:MyTested.AspNetCore.Mvc.Options.dll
Syntax
public static class ServiceCollectionOptionsExtensions
Methods
| Improve this Doc View SourceReplaceOptions(IServiceCollection)
Replaces the default Microsoft.Extensions.Options.IOptions`1 with a scoped implementation.
Declaration
public static IServiceCollection ReplaceOptions(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. |