Table of Contents

Class EndpointOwinMiddleware<TResult>

Namespace
Steeltoe.Management.EndpointOwin
Assembly
Steeltoe.Management.EndpointOwin.dll
public class EndpointOwinMiddleware<TResult> : OwinMiddleware

Type Parameters

TResult
Inheritance
OwinMiddleware
EndpointOwinMiddleware<TResult>
Derived
Inherited Members
OwinMiddleware.Next

Constructors

EndpointOwinMiddleware(OwinMiddleware, IEndpoint<TResult>, IEnumerable<IManagementOptions>, IEnumerable<HttpMethod>, bool, ILogger)

public EndpointOwinMiddleware(OwinMiddleware next, IEndpoint<TResult> endpoint, IEnumerable<IManagementOptions> mgmtOptions, IEnumerable<HttpMethod> allowedMethods = null, bool exactRequestPathMatching = true, ILogger logger = null)

Parameters

next OwinMiddleware
endpoint IEndpoint<TResult>
mgmtOptions IEnumerable<IManagementOptions>
allowedMethods IEnumerable<HttpMethod>
exactRequestPathMatching bool
logger ILogger

EndpointOwinMiddleware(OwinMiddleware, IEndpoint<TResult>, IEnumerable<HttpMethod>, bool, ILogger)

[Obsolete("Use newer constructor that passes in IManagementOptions instead")]
public EndpointOwinMiddleware(OwinMiddleware next, IEndpoint<TResult> endpoint, IEnumerable<HttpMethod> allowedMethods = null, bool exactRequestPathMatching = true, ILogger logger = null)

Parameters

next OwinMiddleware
endpoint IEndpoint<TResult>
allowedMethods IEnumerable<HttpMethod>
exactRequestPathMatching bool
logger ILogger

EndpointOwinMiddleware(OwinMiddleware, IEnumerable<IManagementOptions>, IEnumerable<HttpMethod>, bool, ILogger)

public EndpointOwinMiddleware(OwinMiddleware next, IEnumerable<IManagementOptions> mgmtOptions, IEnumerable<HttpMethod> allowedMethods = null, bool exactRequestPathMatching = true, ILogger logger = null)

Parameters

next OwinMiddleware
mgmtOptions IEnumerable<IManagementOptions>
allowedMethods IEnumerable<HttpMethod>
exactRequestPathMatching bool
logger ILogger

EndpointOwinMiddleware(OwinMiddleware, IEnumerable<HttpMethod>, bool, ILogger)

[Obsolete("Use newer constructor that passes in IManagementOptions instead")]
public EndpointOwinMiddleware(OwinMiddleware next, IEnumerable<HttpMethod> allowedMethods = null, bool exactRequestPathMatching = true, ILogger logger = null)

Parameters

next OwinMiddleware
allowedMethods IEnumerable<HttpMethod>
exactRequestPathMatching bool
logger ILogger

Fields

_allowedMethods

protected IEnumerable<HttpMethod> _allowedMethods

Field Value

IEnumerable<HttpMethod>

_endpoint

protected IEndpoint<TResult> _endpoint

Field Value

IEndpoint<TResult>

_exactRequestPathMatching

protected bool _exactRequestPathMatching

Field Value

bool

_logger

protected ILogger _logger

Field Value

ILogger

_mgmtOptions

protected IEnumerable<IManagementOptions> _mgmtOptions

Field Value

IEnumerable<IManagementOptions>

Methods

GetRequestUri(IOwinRequest)

protected string GetRequestUri(IOwinRequest request)

Parameters

request IOwinRequest

Returns

string

Invoke(IOwinContext)

public override Task Invoke(IOwinContext context)

Parameters

context IOwinContext

Returns

Task

RequestVerbAndPathMatch(string, string)

public virtual bool RequestVerbAndPathMatch(string httpMethod, string requestPath)

Parameters

httpMethod string
requestPath string

Returns

bool

Serialize<T>(T)

protected virtual string Serialize<T>(T result)

Parameters

result T

Returns

string

Type Parameters

T