MY TESTED ASP.NET CORE MVC DOCS
Show / Hide Table of Contents

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 Source

ReplaceOptions(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.

  • Improve this Doc
  • View Source
Back to top Copyright © 2015-2016 MyTestedASP.NET. All Rights Reserved. Generated by DocFX