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
nextRequestDelegateendpointCloudFoundryEndpointloggerILogger<CloudFoundryEndpointMiddleware>
CloudFoundryEndpointMiddleware(RequestDelegate, CloudFoundryEndpoint, IEnumerable<IManagementOptions>, ILogger<CloudFoundryEndpointMiddleware>)
public CloudFoundryEndpointMiddleware(RequestDelegate next, CloudFoundryEndpoint endpoint, IEnumerable<IManagementOptions> mgmtOptions, ILogger<CloudFoundryEndpointMiddleware> logger = null)
Parameters
nextRequestDelegateendpointCloudFoundryEndpointmgmtOptionsIEnumerable<IManagementOptions>loggerILogger<CloudFoundryEndpointMiddleware>
Methods
GetRequestUri(HttpRequest)
protected string GetRequestUri(HttpRequest request)
Parameters
requestHttpRequest
Returns
HandleCloudFoundryRequestAsync(HttpContext)
protected Task HandleCloudFoundryRequestAsync(HttpContext context)
Parameters
contextHttpContext
Returns
Invoke(HttpContext)
public Task Invoke(HttpContext context)
Parameters
contextHttpContext