DisplayOptionsServiceCollectionExtensions class

Provides helper class to assist server configuration

Namespace: ASNA.QSys.Expo.Model Assembly: ASNA.QSys.Expo.Model.dll

Inheritance: Object

Remarks

ASP.NET RazorPage Websites normally has a configuration source C# file named Startup.cs which is called by the ASP.NET runtime. It looks something like the following code:

public void ConfigureServices(IServiceCollection services)
{
    .
    .
    .

    services.ConfigureDisplayPagesOptions(Configuration);

This bootstrap Dependency Injection mechanism, glues (injects) the settings of the Website file appsettings.json, in particular the Section DisplayPages to the Website configuration.

See related class DisplayPagesOptions Class

Methods

Signature Description
ConfigureDisplayPagesOptions(IServiceCollection, IConfiguration) Gets

IServiceCollection ConfigureDisplayPagesOptions(IServiceCollection services, IConfiguration configuration)

Gets

IServiceCollection ConfigureDisplayPagesOptions(IServiceCollection services, IConfiguration configuration)

Parameters

Type Parameter name Description
IServiceCollection services service collection reference
IConfiguration configuration set of key value properties

Returns

Type Description
IServiceCollection the service collection