IHttpApplication<TContext> Interface¶
Represents an application.
- Namespace
Microsoft.AspNetCore.Hosting.Server
- Assemblies
- Microsoft.AspNetCore.Hosting.Server.Abstractions
Syntax¶
public interface IHttpApplication<TContext>
-
interface
Microsoft.AspNetCore.Hosting.Server.
IHttpApplication<TContext>
¶
Methods¶
-
CreateContext
(Microsoft.AspNetCore.Http.Features.IFeatureCollection)¶ Create a TContext given a collection of HTTP features.
Arguments: contextFeatures (Microsoft.AspNetCore.Http.Features.IFeatureCollection) – A collection of HTTP features to be used for creating the TContext. Return type: TContext Returns: The created TContext. TContext CreateContext(IFeatureCollection contextFeatures)
-
DisposeContext
(TContext, System.Exception)¶ Dispose a given TContext.
Arguments: - context (TContext) – The TContext to be disposed.
- exception (System.Exception) – The Exception thrown when processing did not complete successfully, otherwise null.
void DisposeContext(TContext context, Exception exception)
-
ProcessRequestAsync
(TContext)¶ Asynchronously processes an TContext.
Arguments: context (TContext) – The TContext that the operation will process. Return type: System.Threading.Tasks.Task Task ProcessRequestAsync(TContext context)
-