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
servicesIServiceCollectionThe IServiceCollection to add services to.
Returns
- IServiceCollection
The incoming
servicesso that additional calls can be chained.