Table of Contents

Class GlowWebApplicationBuilder

Namespace
Phoesion.Glow.SDK.Firefly
Assembly
Phoesion.Glow.SDK.Firefly.AspHost.WebApplicationBuilder.dll
public sealed class GlowWebApplicationBuilder : IHostApplicationBuilder
Inheritance
object
GlowWebApplicationBuilder
Implements

Properties

Configuration

The application's configured services.

public IConfiguration Configuration { get; }

Property Value

IConfiguration

Environment

The application's configured Microsoft.AspNetCore.Hosting.IWebHostEnvironment.

public IWebHostEnvironment Environment { get; }

Property Value

IWebHostEnvironment

Lifetime

Allows consumers to be notified of application lifetime events.

public IHostApplicationLifetime Lifetime { get; }

Property Value

IHostApplicationLifetime

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

ILoggingBuilder

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

AspServiceMain

Services

The application's configured Microsoft.Extensions.Configuration.IConfiguration.

public IServiceCollection Services { get; }

Property Value

IServiceCollection

Methods

Build()

public GlowWebApplication Build()

Returns

GlowWebApplication

BuildAsync()

public Task<GlowWebApplication> BuildAsync()

Returns

Task<GlowWebApplication>

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

GlowWebApplicationBuilder

CreateBuilderAsync(string[])

public static Task<GlowWebApplicationBuilder> CreateBuilderAsync(string[] args)

Parameters

args string[]

Returns

Task<GlowWebApplicationBuilder>