SaaS Runtime v1beta1 API - Class ServiceCollectionExtensions (1.0.0-beta01)

public static class ServiceCollectionExtensions

Reference documentation and code samples for the SaaS Runtime v1beta1 API class ServiceCollectionExtensions.

Static class to provide extension methods to configure API clients.

Inheritance

object > ServiceCollectionExtensions

Namespace

Microsoft.Extensions.DependencyInjection

Assembly

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 IServiceCollection

The service collection to add the client to. The services are used to configure the client when requested.

action ActionSaasDeploymentsClientBuilder

An optional action to invoke on the client builder. This is invoked before services from services are used.

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 IServiceCollection

The service collection to add the client to. The services are used to configure the client when requested.

action ActionSystem.IServiceProviderSaasDeploymentsClientBuilder

An optional action to invoke on the client builder. This is invoked before services from services are used.

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 IServiceCollection

The service collection to add the client to. The services are used to configure the client when requested.

action ActionSaasRolloutsClientBuilder

An optional action to invoke on the client builder. This is invoked before services from services are used.

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 IServiceCollection

The service collection to add the client to. The services are used to configure the client when requested.

action ActionSystem.IServiceProviderSaasRolloutsClientBuilder

An optional action to invoke on the client builder. This is invoked before services from services are used.

Returns
Type Description
IServiceCollection