Table of Contents

Class Application

Namespace
Mithril.Core
Assembly
Mithril.Core.dll

Application info holder.

public class Application
Inheritance
Application
Inherited Members
Extension Methods

Remarks

Initializes a new instance of the Application class.

Constructors

Application(IConfiguration?, IHostEnvironment?)

Application info holder.

public Application(IConfiguration? configuration, IHostEnvironment? env)

Parameters

configuration IConfiguration

The configuration.

env IHostEnvironment

The host environment

Remarks

Initializes a new instance of the Application class.

Properties

Configuration

Gets the configuration.

public IConfiguration? Configuration { get; }

Property Value

IConfiguration

The configuration.

Environment

Gets the environment.

public IHostEnvironment? Environment { get; }

Property Value

IHostEnvironment

The environment.

Modules

Gets the modules.

public IModule[] Modules { get; }

Property Value

IModule[]

The modules.

Name

Gets the name.

public string Name { get; }

Property Value

string

The name.

Methods

ConfigureApplication(WebApplication?)

Allows configuration of MVC related items.

public WebApplication? ConfigureApplication(WebApplication? app)

Parameters

app WebApplication

The application.

Returns

WebApplication

The application object.

ConfigureHostSettings(IHostBuilder?)

Configures the host settings.

public void ConfigureHostSettings(IHostBuilder? host)

Parameters

host IHostBuilder

The host.

ConfigureLoggingSettings(ILoggingBuilder?)

Configures the logging settings.

public void ConfigureLoggingSettings(ILoggingBuilder? logging)

Parameters

logging ILoggingBuilder

The logging.

ConfigureMVC(IServiceCollection)

Configures the MVC.

public IServiceCollection? ConfigureMVC(IServiceCollection services)

Parameters

services IServiceCollection

The services.

Returns

IServiceCollection

The services

ConfigureServices(IServiceCollection?)

Configures the services for MVC.

public IServiceCollection? ConfigureServices(IServiceCollection? services)

Parameters

services IServiceCollection

The services collection.

Returns

IServiceCollection

The service collection

ConfigureWebHostSettings(IWebHostBuilder?)

Configures the web host settings.

public void ConfigureWebHostSettings(IWebHostBuilder? webHost)

Parameters

webHost IWebHostBuilder

The web host.

InitializeData(IServiceProvider?)

Initializes any data associated with the modules.

public void InitializeData(IServiceProvider? services)

Parameters

services IServiceProvider

The services.