Class CustomWebApplication
Implements
Inherited Members
Namespace: Coree.NETASP.UnderConstruction
Assembly: Coree.NETASP.dll
Syntax
public class CustomWebApplication : IApplicationBuilder
Properties
| Edit this page View SourceApplicationServices
Gets or sets the IServiceProvider that provides access to the application's service container.
Declaration
public IServiceProvider ApplicationServices { get; set; }
Property Value
Type | Description |
---|---|
IServiceProvider |
Host
Declaration
public IWebHost Host { get; }
Property Value
Type | Description |
---|---|
IWebHost |
Properties
Gets a key/value collection that can be used to share data between middleware.
Declaration
public IDictionary<string, object?> Properties { get; }
Property Value
Type | Description |
---|---|
IDictionary<string, object> |
ServerFeatures
Gets the set of HTTP features the application's server provides.
Declaration
public IFeatureCollection ServerFeatures { get; }
Property Value
Type | Description |
---|---|
IFeatureCollection |
Srv
Declaration
public IServiceProvider Srv { get; }
Property Value
Type | Description |
---|---|
IServiceProvider |
Methods
| Edit this page View SourceBuild()
Builds the delegate used by this application to process HTTP requests.
Declaration
public RequestDelegate Build()
Returns
Type | Description |
---|---|
RequestDelegate | The request handling delegate. |
New()
Creates a new IApplicationBuilder that shares the Properties of this IApplicationBuilder.
Declaration
public IApplicationBuilder New()
Returns
Type | Description |
---|---|
IApplicationBuilder | The new IApplicationBuilder. |
Run()
Declaration
public void Run()
Use(Func<RequestDelegate, RequestDelegate>)
Adds a middleware delegate to the application's request pipeline.
Declaration
public IApplicationBuilder Use(Func<RequestDelegate, RequestDelegate> middleware)
Parameters
Type | Name | Description |
---|---|---|
Func<RequestDelegate, RequestDelegate> | middleware | The middleware delegate. |
Returns
Type | Description |
---|---|
IApplicationBuilder | The IApplicationBuilder. |