public static class ServiceCollectionExtensionsReference documentation and code samples for the SaaS Runtime v1beta1 API class ServiceCollectionExtensions.
Static class to provide extension methods to configure API clients.
Namespace
Microsoft.Extensions.DependencyInjectionAssembly
Google.Cloud.SaasPlatform.SaasServiceMgmt.V1Beta1.dll
Methods
AddSaasDeploymentsClient(IServiceCollection, Action<SaasDeploymentsClientBuilder>)
public static IServiceCollection AddSaasDeploymentsClient(this IServiceCollection services, Action<SaasDeploymentsClientBuilder> action = null)Adds a singleton SaasDeploymentsClient to services.
| Parameters | |
|---|---|
| Name | Description |
services |
IServiceCollectionThe service collection to add the client to. The services are used to configure the client when requested. |
action |
ActionSaasDeploymentsClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddSaasDeploymentsClient(IServiceCollection, Action<IServiceProvider, SaasDeploymentsClientBuilder>)
public static IServiceCollection AddSaasDeploymentsClient(this IServiceCollection services, Action<IServiceProvider, SaasDeploymentsClientBuilder> action)Adds a singleton SaasDeploymentsClient to services.
| Parameters | |
|---|---|
| Name | Description |
services |
IServiceCollectionThe service collection to add the client to. The services are used to configure the client when requested. |
action |
ActionSystem.IServiceProviderSaasDeploymentsClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddSaasRolloutsClient(IServiceCollection, Action<SaasRolloutsClientBuilder>)
public static IServiceCollection AddSaasRolloutsClient(this IServiceCollection services, Action<SaasRolloutsClientBuilder> action = null)Adds a singleton SaasRolloutsClient to services.
| Parameters | |
|---|---|
| Name | Description |
services |
IServiceCollectionThe service collection to add the client to. The services are used to configure the client when requested. |
action |
ActionSaasRolloutsClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddSaasRolloutsClient(IServiceCollection, Action<IServiceProvider, SaasRolloutsClientBuilder>)
public static IServiceCollection AddSaasRolloutsClient(this IServiceCollection services, Action<IServiceProvider, SaasRolloutsClientBuilder> action)Adds a singleton SaasRolloutsClient to services.
| Parameters | |
|---|---|
| Name | Description |
services |
IServiceCollectionThe service collection to add the client to. The services are used to configure the client when requested. |
action |
ActionSystem.IServiceProviderSaasRolloutsClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|