Class IServiceCollectionExtensions
Inheritance
System.Object
IServiceCollectionExtensions
Namespace: Steeltoe.Common.Kubernetes
Assembly: Steeltoe.Common.Kubernetes.dll
Syntax
public static class IServiceCollectionExtensions : object
Methods
| Edit this page View SourceAddKubernetesApplicationInstanceInfo(IServiceCollection)
Removes any existing
Declaration
public static IServiceCollection AddKubernetesApplicationInstanceInfo(this IServiceCollection serviceCollection)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | serviceCollection | Collection of configured services |
Returns
Type | Description |
---|---|
IServiceCollection |
AddKubernetesClient(IServiceCollection, Action<KubernetesClientConfiguration>)
Add a
Declaration
public static IServiceCollection AddKubernetesClient(this IServiceCollection serviceCollection, Action<KubernetesClientConfiguration> kubernetesClientConfiguration = null)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | serviceCollection | |
Action<KubernetesClientConfiguration> | kubernetesClientConfiguration | Customization of the Kubernetes Client |
Returns
Type | Description |
---|---|
IServiceCollection | Collection of configured services |
GetKubernetesApplicationOptions(IServiceCollection)
Retrieves KubernetesApplicationOptions from the service collection
Declaration
public static IApplicationInstanceInfo GetKubernetesApplicationOptions(this IServiceCollection serviceCollection)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | serviceCollection | Collection of configured services |
Returns
Type | Description |
---|---|
IApplicationInstanceInfo | Relevant KubernetesApplicationOptions |