Table of Contents

Class MvcBuilderExtensions

Namespace
OpenSettings.AspNetCore
Assembly
OpenSettings.AspNetCore.dll

Provides extension methods for configuring MVC services in OpenSettings. This class contains methods to register OpenSettings-related services, configure HTTP clients, and set up controllers with authorization mechanisms.

public static class MvcBuilderExtensions
Inheritance
MvcBuilderExtensions
Inherited Members

Methods

AddOpenSettingsController(IMvcBuilder, IConfiguration)

Registers the open settings controllers and configures authentication and services based on the provided ServiceType. This method sets up the controllers required for the OpenSettings library, including custom services depending on whether the service type is a provider or consumer.

public static IMvcBuilder AddOpenSettingsController(this IMvcBuilder mvcBuilder, IConfiguration configuration)

Parameters

mvcBuilder IMvcBuilder

The IMvcBuilder used to configure MVC services.

configuration IConfiguration

The IConfiguration used to retrieve app settings and configuration values.

Returns

IMvcBuilder

Returns the IMvcBuilder to allow further configuration of MVC services.