Class CloudFoundryEndpointMiddleware
- Namespace
- Steeltoe.Management.Endpoint.CloudFoundry
- Assembly
- Steeltoe.Management.EndpointCore.dll
CloudFoundry endpoint provides hypermedia: a page is added with links to all the endpoints that are enabled. When deployed to CloudFoundry this endpoint is used for apps manager integration when CloudFoundrySecurityMiddleware is added.
public class CloudFoundryEndpointMiddleware : EndpointMiddleware<Links, string>
- Inheritance
-
CloudFoundryEndpointMiddleware
- Inherited Members
Constructors
CloudFoundryEndpointMiddleware(RequestDelegate, CloudFoundryEndpoint, ILogger<CloudFoundryEndpointMiddleware>)
[Obsolete("Use newer constructor that passes in IManagementOptions instead")]
public CloudFoundryEndpointMiddleware(RequestDelegate next, CloudFoundryEndpoint endpoint, ILogger<CloudFoundryEndpointMiddleware> logger = null)
Parameters
next
RequestDelegateendpoint
CloudFoundryEndpointlogger
ILogger<CloudFoundryEndpointMiddleware>
CloudFoundryEndpointMiddleware(RequestDelegate, CloudFoundryEndpoint, IEnumerable<IManagementOptions>, ILogger<CloudFoundryEndpointMiddleware>)
public CloudFoundryEndpointMiddleware(RequestDelegate next, CloudFoundryEndpoint endpoint, IEnumerable<IManagementOptions> mgmtOptions, ILogger<CloudFoundryEndpointMiddleware> logger = null)
Parameters
next
RequestDelegateendpoint
CloudFoundryEndpointmgmtOptions
IEnumerable<IManagementOptions>logger
ILogger<CloudFoundryEndpointMiddleware>
Methods
GetRequestUri(HttpRequest)
protected string GetRequestUri(HttpRequest request)
Parameters
request
HttpRequest
Returns
HandleCloudFoundryRequestAsync(HttpContext)
protected Task HandleCloudFoundryRequestAsync(HttpContext context)
Parameters
context
HttpContext
Returns
Invoke(HttpContext)
public Task Invoke(HttpContext context)
Parameters
context
HttpContext