Table of Contents

Class CloudFoundryServiceCollectionExtensions

Namespace
Steeltoe.Configuration.CloudFoundry
Assembly
Steeltoe.Configuration.CloudFoundry.dll

Extension methods for adding services related to CloudFoundry.

public static class CloudFoundryServiceCollectionExtensions
Inheritance
CloudFoundryServiceCollectionExtensions
Inherited Members

Methods

AddCloudFoundryOptions(IServiceCollection)

Registers CloudFoundryApplicationOptions and CloudFoundryServicesOptions for use with the options pattern. The first type is also registered as IApplicationInstanceInfo in the IoC container for easy access.

public static IServiceCollection AddCloudFoundryOptions(this IServiceCollection services)

Parameters

services IServiceCollection

The Microsoft.Extensions.DependencyInjection.IServiceCollection to add services to.

Returns

IServiceCollection

The incoming services so that additional calls can be chained.