Class Application
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
IConfigurationThe configuration.
env
IHostEnvironmentThe 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
WebApplicationThe application.
Returns
- WebApplication
The application object.
ConfigureHostSettings(IHostBuilder?)
Configures the host settings.
public void ConfigureHostSettings(IHostBuilder? host)
Parameters
host
IHostBuilderThe host.
ConfigureLoggingSettings(ILoggingBuilder?)
Configures the logging settings.
public void ConfigureLoggingSettings(ILoggingBuilder? logging)
Parameters
logging
ILoggingBuilderThe logging.
ConfigureMVC(IServiceCollection)
Configures the MVC.
public IServiceCollection? ConfigureMVC(IServiceCollection services)
Parameters
services
IServiceCollectionThe services.
Returns
- IServiceCollection
The services
ConfigureServices(IServiceCollection?)
Configures the services for MVC.
public IServiceCollection? ConfigureServices(IServiceCollection? services)
Parameters
services
IServiceCollectionThe services collection.
Returns
- IServiceCollection
The service collection
ConfigureWebHostSettings(IWebHostBuilder?)
Configures the web host settings.
public void ConfigureWebHostSettings(IWebHostBuilder? webHost)
Parameters
webHost
IWebHostBuilderThe web host.
InitializeData(IServiceProvider?)
Initializes any data associated with the modules.
public void InitializeData(IServiceProvider? services)
Parameters
services
IServiceProviderThe services.