Table of Contents

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, 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 bool
logger 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 bool
logger 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 bool
logger 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

string

RequestVerbAndPathMatch(string, string)

public override bool RequestVerbAndPathMatch(string httpMethod, string requestPath)

Parameters

httpMethod string
requestPath string

Returns

bool