Show / Hide Table of Contents

Class KestrelWebAppComponent<TEntryPoint>

A component for hosting a web application via Microsoft.AspNetCore.Hosting.IWebHost.

Inheritance
System.Object
KestrelWebApplicationFactory<TEntryPoint>
KestrelWebAppComponent<TEntryPoint>
Implements
IAsyncDisposable
IAccelergreatComponent
IAsyncDisposable
Inherited Members
KestrelWebApplicationFactory<TEntryPoint>.ConfigureHttpsPort
KestrelWebApplicationFactory<TEntryPoint>.Server
KestrelWebApplicationFactory<TEntryPoint>.GetBaseAddress(Boolean)
KestrelWebApplicationFactory<TEntryPoint>.Services
KestrelWebApplicationFactory<TEntryPoint>.CreateClient()
KestrelWebApplicationFactory<TEntryPoint>.CreateClient(KestrelWebApplicationFactoryClientOptions)
KestrelWebApplicationFactory<TEntryPoint>.CreateDefaultClient(DelegatingHandler[])
KestrelWebApplicationFactory<TEntryPoint>.CreateWebHostBuilder()
KestrelWebApplicationFactory<TEntryPoint>.CreateHost(IHostBuilder)
KestrelWebApplicationFactory<TEntryPoint>.CreateWebHost(IWebHostBuilder)
KestrelWebApplicationFactory<TEntryPoint>.ConfigureClient(HttpClient)
KestrelWebApplicationFactory<TEntryPoint>.GetTestAssemblies()
KestrelWebApplicationFactory<TEntryPoint>.Dispose()
KestrelWebApplicationFactory<TEntryPoint>.Dispose(Boolean)
KestrelWebApplicationFactory<TEntryPoint>.DisposeAsync()
Namespace: Accelergreat.Web
Assembly: Accelergreat.Web.dll
Syntax
public class KestrelWebAppComponent<TEntryPoint> : KestrelWebApplicationFactory<TEntryPoint>, IAccelergreatComponent where TEntryPoint : class
Type Parameters
Name Description
TEntryPoint

The Startup class of the web application to be hosted.

Methods

BuildConfiguration(IConfigurationBuilder, IReadOnlyAccelergreatEnvironmentPipelineData)

Override this method to add configuration values to the configurationBuilder.

Declaration
protected virtual void BuildConfiguration(IConfigurationBuilder configurationBuilder, IReadOnlyAccelergreatEnvironmentPipelineData accelergreatEnvironmentPipelineData)
Parameters
Type Name Description
Microsoft.Extensions.Configuration.IConfigurationBuilder configurationBuilder
IReadOnlyAccelergreatEnvironmentPipelineData accelergreatEnvironmentPipelineData

See AccelergreatEnvironmentPipelineDataKeys for pre-defined keys.

ConfigureWebHost(IWebHostBuilder)

Declaration
protected sealed override void ConfigureWebHost(IWebHostBuilder builder)
Parameters
Type Name Description
Microsoft.AspNetCore.Hosting.IWebHostBuilder builder
Overrides
Accelergreat.Web.Factories.KestrelWebApplicationFactory<TEntryPoint>.ConfigureWebHost(Microsoft.AspNetCore.Hosting.IWebHostBuilder)

ConfigureWebHost(IWebHostBuilder, IConfiguration, IReadOnlyAccelergreatEnvironmentPipelineData)

Override this method to configure the Microsoft.AspNetCore.Hosting.IWebHostBuilder.

The configuration is automatically applied with Microsoft.AspNetCore.Hosting.HostingAbstractionsWebHostBuilderExtensions.UseConfiguration(Microsoft.AspNetCore.Hosting.IWebHostBuilder,Microsoft.Extensions.Configuration.IConfiguration).

Declaration
protected virtual void ConfigureWebHost(IWebHostBuilder builder, IConfiguration configuration, IReadOnlyAccelergreatEnvironmentPipelineData accelergreatEnvironmentPipelineData)
Parameters
Type Name Description
Microsoft.AspNetCore.Hosting.IWebHostBuilder builder
Microsoft.Extensions.Configuration.IConfiguration configuration
IReadOnlyAccelergreatEnvironmentPipelineData accelergreatEnvironmentPipelineData

See AccelergreatEnvironmentPipelineDataKeys for pre-defined keys.

OnWebAppInitializedAsync()

Called after the web app has been started.

Declaration
protected virtual Task OnWebAppInitializedAsync()
Returns
Type Description
Task

OnWebAppResetAsync()

Called after the web app has been reset.

Declaration
protected virtual Task OnWebAppResetAsync()
Returns
Type Description
Task

Implements

IAsyncDisposable
IAccelergreatComponent
IAsyncDisposable
In This Article
Back to top Copyright © Nanogunn Ltd.