Class GlowWebApplication
public sealed class GlowWebApplication : IEndpointRouteBuilder, IApplicationBuilder
- Inheritance
-
objectGlowWebApplication
- 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
DataSources
Gets the endpoint data sources configured in the builder.
public ICollection<EndpointDataSource> DataSources { get; }
Property Value
Environment
public IWebHostEnvironment Environment { get; init; }
Property Value
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
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
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
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.