Class EndpointMiddleware<TResult, TRequest>
- Namespace
- Steeltoe.Management.Endpoint.Middleware
- Assembly
- Steeltoe.Management.EndpointBase.dll
public class EndpointMiddleware<TResult, TRequest> : EndpointMiddleware<TResult>
Type Parameters
TResultTRequest
- 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
endpointIEndpoint<TResult, TRequest>mgmtOptionsIEnumerable<IManagementOptions>allowedMethodsIEnumerable<HttpMethod>exactRequestPathMatchingboolloggerILogger
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
endpointIEndpoint<TResult, TRequest>allowedMethodsIEnumerable<HttpMethod>exactRequestPathMatchingboolloggerILogger
EndpointMiddleware(IEnumerable<IManagementOptions>, IEnumerable<HttpMethod>, bool, ILogger)
public EndpointMiddleware(IEnumerable<IManagementOptions> mgmtOptions, IEnumerable<HttpMethod> allowedMethods = null, bool exactRequestPathMatching = true, ILogger logger = null)
Parameters
mgmtOptionsIEnumerable<IManagementOptions>allowedMethodsIEnumerable<HttpMethod>exactRequestPathMatchingboolloggerILogger
Fields
_endpoint
protected IEndpoint<TResult, TRequest> _endpoint
Field Value
- IEndpoint<TResult, TRequest>
Methods
HandleRequest(TRequest)
public virtual string HandleRequest(TRequest arg)
Parameters
argTRequest
Returns
RequestVerbAndPathMatch(string, string)
public override bool RequestVerbAndPathMatch(string httpMethod, string requestPath)