Dataflow v1beta3 API - Class ServiceCollectionExtensions (2.0.0-beta06)

public static class ServiceCollectionExtensions

Reference documentation and code samples for the Dataflow v1beta3 API class ServiceCollectionExtensions.

Static class to provide extension methods to configure API clients.

Inheritance

object > ServiceCollectionExtensions

Namespace

Microsoft.Extensions.DependencyInjection

Assembly

Google.Cloud.Dataflow.V1Beta3.dll

Methods

AddFlexTemplatesServiceClient(IServiceCollection, Action<FlexTemplatesServiceClientBuilder>)

public static IServiceCollection AddFlexTemplatesServiceClient(this IServiceCollection services, Action<FlexTemplatesServiceClientBuilder> action = null)

Adds a singleton FlexTemplatesServiceClient 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 ActionFlexTemplatesServiceClientBuilder

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

Returns
Type Description
IServiceCollection

AddJobsV1Beta3Client(IServiceCollection, Action<JobsV1Beta3ClientBuilder>)

public static IServiceCollection AddJobsV1Beta3Client(this IServiceCollection services, Action<JobsV1Beta3ClientBuilder> action = null)

Adds a singleton JobsV1Beta3Client 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 ActionJobsV1Beta3ClientBuilder

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

Returns
Type Description
IServiceCollection

AddMessagesV1Beta3Client(IServiceCollection, Action<MessagesV1Beta3ClientBuilder>)

public static IServiceCollection AddMessagesV1Beta3Client(this IServiceCollection services, Action<MessagesV1Beta3ClientBuilder> action = null)

Adds a singleton MessagesV1Beta3Client 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 ActionMessagesV1Beta3ClientBuilder

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

Returns
Type Description
IServiceCollection

AddMetricsV1Beta3Client(IServiceCollection, Action<MetricsV1Beta3ClientBuilder>)

public static IServiceCollection AddMetricsV1Beta3Client(this IServiceCollection services, Action<MetricsV1Beta3ClientBuilder> action = null)

Adds a singleton MetricsV1Beta3Client 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 ActionMetricsV1Beta3ClientBuilder

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

Returns
Type Description
IServiceCollection

AddSnapshotsV1Beta3Client(IServiceCollection, Action<SnapshotsV1Beta3ClientBuilder>)

public static IServiceCollection AddSnapshotsV1Beta3Client(this IServiceCollection services, Action<SnapshotsV1Beta3ClientBuilder> action = null)

Adds a singleton SnapshotsV1Beta3Client 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 ActionSnapshotsV1Beta3ClientBuilder

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

Returns
Type Description
IServiceCollection

AddTemplatesServiceClient(IServiceCollection, Action<TemplatesServiceClientBuilder>)

public static IServiceCollection AddTemplatesServiceClient(this IServiceCollection services, Action<TemplatesServiceClientBuilder> action = null)

Adds a singleton TemplatesServiceClient 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 ActionTemplatesServiceClientBuilder

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

Returns
Type Description
IServiceCollection