Class MappingsEndpointOwinMiddleware
- Namespace
- Steeltoe.Management.EndpointOwin.Mappings
- Assembly
- Steeltoe.Management.EndpointOwin.dll
public class MappingsEndpointOwinMiddleware : EndpointOwinMiddleware<ApplicationMappings>
- Inheritance
-
OwinMiddlewareMappingsEndpointOwinMiddleware
- 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
OwinMiddlewareoptions
IMappingsOptionsmgmtOptions
IEnumerable<IManagementOptions>apiExplorer
IApiExplorerlogger
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
OwinMiddlewareoptions
IMappingsOptionsapiExplorer
IApiExplorerlogger
ILogger
Fields
_apiExplorer
protected IApiExplorer _apiExplorer
Field Value
_options
protected IMappingsOptions _options
Field Value
Methods
GetApplicationMappings()
protected ApplicationMappings GetApplicationMappings()
Returns
GetMappingDescriptions(Collection<ApiDescription>)
protected IDictionary<string, IList<MappingDescription>> GetMappingDescriptions(Collection<ApiDescription> apiDescriptors)
Parameters
apiDescriptors
Collection<ApiDescription>
Returns
GetRouteDetails(ApiDescription)
protected IRouteDetails GetRouteDetails(ApiDescription desc)
Parameters
desc
ApiDescription
Returns
Invoke(IOwinContext)
public override Task Invoke(IOwinContext context)
Parameters
context
IOwinContext
Returns
RequestVerbAndPathMatch(string, string)
public override bool RequestVerbAndPathMatch(string httpMethod, string requestPath)