Class ServiceCollectionExtensions (2.0.0)

public static class ServiceCollectionExtensions

Static class to provide extension methods to configure API clients.

Inheritance

Object > ServiceCollectionExtensions

Namespace

Microsoft.Extensions.DependencyInjection

Assembly

Google.Cloud.AppEngine.V1.dll

Methods

AddApplicationsClient(IServiceCollection, Action<ApplicationsClientBuilder>)

public static IServiceCollection AddApplicationsClient(this IServiceCollection services, Action<ApplicationsClientBuilder> action = null)

Adds a singleton ApplicationsClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionAction<ApplicationsClientBuilder>

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

Returns
TypeDescription
IServiceCollection

AddAuthorizedCertificatesClient(IServiceCollection, Action<AuthorizedCertificatesClientBuilder>)

public static IServiceCollection AddAuthorizedCertificatesClient(this IServiceCollection services, Action<AuthorizedCertificatesClientBuilder> action = null)

Adds a singleton AuthorizedCertificatesClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionAction<AuthorizedCertificatesClientBuilder>

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

Returns
TypeDescription
IServiceCollection

AddAuthorizedDomainsClient(IServiceCollection, Action<AuthorizedDomainsClientBuilder>)

public static IServiceCollection AddAuthorizedDomainsClient(this IServiceCollection services, Action<AuthorizedDomainsClientBuilder> action = null)

Adds a singleton AuthorizedDomainsClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionAction<AuthorizedDomainsClientBuilder>

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

Returns
TypeDescription
IServiceCollection

AddDomainMappingsClient(IServiceCollection, Action<DomainMappingsClientBuilder>)

public static IServiceCollection AddDomainMappingsClient(this IServiceCollection services, Action<DomainMappingsClientBuilder> action = null)

Adds a singleton DomainMappingsClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionAction<DomainMappingsClientBuilder>

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

Returns
TypeDescription
IServiceCollection

AddFirewallClient(IServiceCollection, Action<FirewallClientBuilder>)

public static IServiceCollection AddFirewallClient(this IServiceCollection services, Action<FirewallClientBuilder> action = null)

Adds a singleton FirewallClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionAction<FirewallClientBuilder>

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

Returns
TypeDescription
IServiceCollection

AddInstancesClient(IServiceCollection, Action<InstancesClientBuilder>)

public static IServiceCollection AddInstancesClient(this IServiceCollection services, Action<InstancesClientBuilder> action = null)

Adds a singleton InstancesClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionAction<InstancesClientBuilder>

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

Returns
TypeDescription
IServiceCollection

AddServicesClient(IServiceCollection, Action<ServicesClientBuilder>)

public static IServiceCollection AddServicesClient(this IServiceCollection services, Action<ServicesClientBuilder> action = null)

Adds a singleton ServicesClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionAction<ServicesClientBuilder>

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

Returns
TypeDescription
IServiceCollection

AddVersionsClient(IServiceCollection, Action<VersionsClientBuilder>)

public static IServiceCollection AddVersionsClient(this IServiceCollection services, Action<VersionsClientBuilder> action = null)

Adds a singleton VersionsClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionAction<VersionsClientBuilder>

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

Returns
TypeDescription
IServiceCollection