Class EndpointMiddleware<TResult, TRequest>
- Namespace
- Steeltoe.Management.Endpoint.Middleware
- Assembly
- Steeltoe.Management.EndpointBase.dll
public class EndpointMiddleware<TResult, TRequest> : EndpointMiddleware<TResult>
Type Parameters
TResult
TRequest
- Inheritance
-
EndpointMiddleware<TResult>EndpointMiddleware<TResult, TRequest>
- Derived
- Inherited Members
Constructors
EndpointMiddleware(IEndpoint<TResult, TRequest>, IEnumerable<IManagementOptions>, IEnumerable<HttpMethod>, bool, ILogger)
public EndpointMiddleware(IEndpoint<TResult, TRequest> endpoint, IEnumerable<IManagementOptions> mgmtOptions, IEnumerable<HttpMethod> allowedMethods = null, bool exactRequestPathMatching = true, ILogger logger = null)
Parameters
endpoint
IEndpoint<TResult, TRequest>mgmtOptions
IEnumerable<IManagementOptions>allowedMethods
IEnumerable<HttpMethod>exactRequestPathMatching
boollogger
ILogger
EndpointMiddleware(IEndpoint<TResult, TRequest>, IEnumerable<HttpMethod>, bool, ILogger)
[Obsolete("Use newer constructor that passes in IManagementOptions instead")]
public EndpointMiddleware(IEndpoint<TResult, TRequest> endpoint, IEnumerable<HttpMethod> allowedMethods = null, bool exactRequestPathMatching = true, ILogger logger = null)
Parameters
endpoint
IEndpoint<TResult, TRequest>allowedMethods
IEnumerable<HttpMethod>exactRequestPathMatching
boollogger
ILogger
EndpointMiddleware(IEnumerable<IManagementOptions>, IEnumerable<HttpMethod>, bool, ILogger)
public EndpointMiddleware(IEnumerable<IManagementOptions> mgmtOptions, IEnumerable<HttpMethod> allowedMethods = null, bool exactRequestPathMatching = true, ILogger logger = null)
Parameters
mgmtOptions
IEnumerable<IManagementOptions>allowedMethods
IEnumerable<HttpMethod>exactRequestPathMatching
boollogger
ILogger
Fields
_endpoint
protected IEndpoint<TResult, TRequest> _endpoint
Field Value
- IEndpoint<TResult, TRequest>
Methods
HandleRequest(TRequest)
public virtual string HandleRequest(TRequest arg)
Parameters
arg
TRequest
Returns
RequestVerbAndPathMatch(string, string)
public override bool RequestVerbAndPathMatch(string httpMethod, string requestPath)