Table of Contents

Class GlowWebApplication

Namespace
Phoesion.Glow.SDK.Firefly.AspHost
Assembly
Phoesion.Glow.SDK.Firefly.AspHost.dll
public sealed class GlowWebApplication : IEndpointRouteBuilder, IApplicationBuilder
Inheritance
object
GlowWebApplication
Implements

Constructors

GlowWebApplication(IApplicationBuilder)

public GlowWebApplication(IApplicationBuilder rootApp)

Parameters

rootApp IApplicationBuilder

Properties

ApplicationServices

Gets or sets the IServiceProvider that provides access to the application's service container.

public IServiceProvider ApplicationServices { get; set; }

Property Value

IServiceProvider

DataSources

Gets the endpoint data sources configured in the builder.

public ICollection<EndpointDataSource> DataSources { get; }

Property Value

ICollection<EndpointDataSource>

Environment

public IWebHostEnvironment Environment { get; init; }

Property Value

IWebHostEnvironment

Properties

Gets a key/value collection that can be used to share data between middleware.

public IDictionary<string, object?> Properties { get; }

Property Value

IDictionary<string, object>

ServerFeatures

Gets the set of HTTP features the application's server provides.

public IFeatureCollection ServerFeatures { get; }

Property Value

IFeatureCollection

Remarks

An empty collection is returned if a server wasn't specified for the application builder.

ServiceProvider

Gets the IServiceProvider used to resolve services for routes.

public IServiceProvider ServiceProvider { get; }

Property Value

IServiceProvider

Methods

Build()

Builds the delegate used by this application to process HTTP requests.

public RequestDelegate Build()

Returns

RequestDelegate

The request handling delegate.

CreateApplicationBuilder()

Creates a new IApplicationBuilder.

public IApplicationBuilder CreateApplicationBuilder()

Returns

IApplicationBuilder

The new IApplicationBuilder.

New()

Creates a new IApplicationBuilder that shares the Properties of this IApplicationBuilder.

public IApplicationBuilder New()

Returns

IApplicationBuilder

The new IApplicationBuilder.

Run()

public void Run()

RunAsync()

public Task RunAsync()

Returns

Task

Use(Func<RequestDelegate, RequestDelegate>)

Adds a middleware delegate to the application's request pipeline.

public IApplicationBuilder Use(Func<RequestDelegate, RequestDelegate> middleware)

Parameters

middleware Func<RequestDelegate, RequestDelegate>

The middleware delegate.

Returns

IApplicationBuilder

The IApplicationBuilder.