Class GlowWebApplicationBuilder
- Assembly
- Phoesion.Glow.SDK.Firefly.AspHost.WebApplicationBuilder.dll
public sealed class GlowWebApplicationBuilder : IHostApplicationBuilder
- Inheritance
-
objectGlowWebApplicationBuilder
- Implements
Properties
Configuration
The application's configured services.
public IConfiguration Configuration { get; }
Property Value
Environment
The application's configured Microsoft.AspNetCore.Hosting.IWebHostEnvironment.
public IWebHostEnvironment Environment { get; }
Property Value
Lifetime
Allows consumers to be notified of application lifetime events.
public IHostApplicationLifetime Lifetime { get; }
Property Value
Logging
Gets a collection of logging providers for the application to compose. This is useful for adding new logging providers.
public ILoggingBuilder Logging { get; }
Property Value
Metrics
Gets a builder that allows enabling metrics and directing their output.
public IMetricsBuilder Metrics { get; }
Property Value
- IMetricsBuilder
Properties
Gets a central location for sharing state between components during the host building process.
public IDictionary<object, object> Properties { get; init; }
Property Value
- IDictionary<object, object>
ServiceMain
public static AspServiceMain ServiceMain { get; }
Property Value
Services
The application's configured Microsoft.Extensions.Configuration.IConfiguration.
public IServiceCollection Services { get; }
Property Value
Methods
Build()
public GlowWebApplication Build()
Returns
BuildAsync()
public Task<GlowWebApplication> BuildAsync()
Returns
ConfigureContainer<TContainerBuilder>(IServiceProviderFactory<TContainerBuilder>, Action<TContainerBuilder>?)
Registers a IServiceProviderFactory<TContainerBuilder> instance to be used to create the IServiceProvider.
public void ConfigureContainer<TContainerBuilder>(IServiceProviderFactory<TContainerBuilder> factory, Action<TContainerBuilder>? configure = null) where TContainerBuilder : notnull
Parameters
factory
IServiceProviderFactory<TContainerBuilder>The factory object that can create the
TContainerBuilder
and IServiceProvider.configure
Action<TContainerBuilder>A delegate used to configure the
TContainerBuilder
. This can be used to configure services using APIS specific to the IServiceProviderFactory<TContainerBuilder> implementation.
Type Parameters
TContainerBuilder
The type of builder provided by the IServiceProviderFactory<TContainerBuilder>.
Remarks
The IServiceProvider is created when this builder is built and so the delegate provided
by configure
will run after all other services have been registered.
Multiple calls to ConfigureContainer<TContainerBuilder>(IServiceProviderFactory<TContainerBuilder>, Action<TContainerBuilder>) will replace
the previously stored factory
and configure
delegate.
CreateBuilder(string[])
public static GlowWebApplicationBuilder CreateBuilder(string[] args)
Parameters
args
string[]
Returns
CreateBuilderAsync(string[])
public static Task<GlowWebApplicationBuilder> CreateBuilderAsync(string[] args)
Parameters
args
string[]