Table of Contents

Class MappingsEndpointOwinMiddleware

Namespace
Steeltoe.Management.EndpointOwin.Mappings
Assembly
Steeltoe.Management.EndpointOwin.dll
public class MappingsEndpointOwinMiddleware : EndpointOwinMiddleware<ApplicationMappings>
Inheritance
OwinMiddleware
MappingsEndpointOwinMiddleware
Inherited Members
OwinMiddleware.Next

Constructors

MappingsEndpointOwinMiddleware(OwinMiddleware, IMappingsOptions, IEnumerable<IManagementOptions>, IApiExplorer, ILogger)

public MappingsEndpointOwinMiddleware(OwinMiddleware next, IMappingsOptions options, IEnumerable<IManagementOptions> mgmtOptions, IApiExplorer apiExplorer, ILogger logger = null)

Parameters

next OwinMiddleware
options IMappingsOptions
mgmtOptions IEnumerable<IManagementOptions>
apiExplorer IApiExplorer
logger ILogger

MappingsEndpointOwinMiddleware(OwinMiddleware, IMappingsOptions, IApiExplorer, ILogger)

[Obsolete("Use newer constructor that passes in IManagementOptions instead")]
public MappingsEndpointOwinMiddleware(OwinMiddleware next, IMappingsOptions options, IApiExplorer apiExplorer, ILogger logger = null)

Parameters

next OwinMiddleware
options IMappingsOptions
apiExplorer IApiExplorer
logger ILogger

Fields

_apiExplorer

protected IApiExplorer _apiExplorer

Field Value

IApiExplorer

_options

protected IMappingsOptions _options

Field Value

IMappingsOptions

Methods

GetApplicationMappings()

protected ApplicationMappings GetApplicationMappings()

Returns

ApplicationMappings

GetMappingDescriptions(Collection<ApiDescription>)

protected IDictionary<string, IList<MappingDescription>> GetMappingDescriptions(Collection<ApiDescription> apiDescriptors)

Parameters

apiDescriptors Collection<ApiDescription>

Returns

IDictionary<string, IList<MappingDescription>>

GetRouteDetails(ApiDescription)

protected IRouteDetails GetRouteDetails(ApiDescription desc)

Parameters

desc ApiDescription

Returns

IRouteDetails

Invoke(IOwinContext)

public override Task Invoke(IOwinContext context)

Parameters

context IOwinContext

Returns

Task

RequestVerbAndPathMatch(string, string)

public override bool RequestVerbAndPathMatch(string httpMethod, string requestPath)

Parameters

httpMethod string
requestPath string

Returns

bool