Table of Contents

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 RequestDelegate
endpoint CloudFoundryEndpoint
logger ILogger<CloudFoundryEndpointMiddleware>

CloudFoundryEndpointMiddleware(RequestDelegate, CloudFoundryEndpoint, IEnumerable<IManagementOptions>, ILogger<CloudFoundryEndpointMiddleware>)

public CloudFoundryEndpointMiddleware(RequestDelegate next, CloudFoundryEndpoint endpoint, IEnumerable<IManagementOptions> mgmtOptions, ILogger<CloudFoundryEndpointMiddleware> logger = null)

Parameters

next RequestDelegate
endpoint CloudFoundryEndpoint
mgmtOptions IEnumerable<IManagementOptions>
logger ILogger<CloudFoundryEndpointMiddleware>

Methods

GetRequestUri(HttpRequest)

protected string GetRequestUri(HttpRequest request)

Parameters

request HttpRequest

Returns

string

HandleCloudFoundryRequestAsync(HttpContext)

protected Task HandleCloudFoundryRequestAsync(HttpContext context)

Parameters

context HttpContext

Returns

Task

Invoke(HttpContext)

public Task Invoke(HttpContext context)

Parameters

context HttpContext

Returns

Task