Class EndpointMiddleware<TRequest, TResponse>
Inheritance
System.Object
EndpointMiddleware<TRequest, TResponse>
Assembly: Steeltoe.Management.Endpoint.dll
Syntax
public abstract class EndpointMiddleware<TRequest, TResponse> : object, IEndpointMiddleware
Type Parameters
Name |
Description |
TRequest |
|
TResponse |
|
Constructors
|
Edit this page
View Source
EndpointMiddleware(IEndpointHandler<TRequest, TResponse>, IOptionsMonitor<ManagementOptions>, ILoggerFactory)
Declaration
protected EndpointMiddleware(IEndpointHandler<TRequest, TResponse> endpointHandler, IOptionsMonitor<ManagementOptions> managementOptionsMonitor, ILoggerFactory loggerFactory)
Parameters
Properties
|
Edit this page
View Source
EndpointHandler
Declaration
protected IEndpointHandler<TRequest, TResponse> EndpointHandler { get; }
Property Value
|
Edit this page
View Source
EndpointOptions
Declaration
public EndpointOptions EndpointOptions { get; }
Property Value
|
Edit this page
View Source
ManagementOptionsMonitor
Declaration
protected IOptionsMonitor<ManagementOptions> ManagementOptionsMonitor { get; }
Property Value
Methods
|
Edit this page
View Source
CanInvoke(PathString)
Declaration
public virtual bool CanInvoke(PathString requestPath)
Parameters
Type |
Name |
Description |
PathString |
requestPath |
|
Returns
Type |
Description |
System.Boolean |
|
|
Edit this page
View Source
Declaration
public virtual ActuatorMetadataProvider GetMetadataProvider()
Returns
|
Edit this page
View Source
InvokeAsync(HttpContext, Nullable<RequestDelegate>)
Declaration
public async Task InvokeAsync(HttpContext context, RequestDelegate? next)
Parameters
Type |
Name |
Description |
HttpContext |
context |
|
System.Nullable<RequestDelegate> |
next |
|
Returns
|
Edit this page
View Source
InvokeEndpointHandlerAsync(TRequest, CancellationToken)
Declaration
protected abstract Task<TResponse> InvokeEndpointHandlerAsync(TRequest request, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
TRequest |
request |
|
CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
Task<TResponse> |
|
|
Edit this page
View Source
ParseRequestAsync(HttpContext, CancellationToken)
Declaration
protected virtual Task<TRequest> ParseRequestAsync(HttpContext httpContext, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
HttpContext |
httpContext |
|
CancellationToken |
cancellationToken |
|
Returns
Type |
Description |
Task<TRequest> |
|
|
Edit this page
View Source
WriteResponseAsync(TResponse, HttpContext, CancellationToken)
Declaration
protected virtual async Task WriteResponseAsync(TResponse response, HttpContext httpContext, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
TResponse |
response |
|
HttpContext |
httpContext |
|
CancellationToken |
cancellationToken |
|
Returns
Implements
IMiddleware