Cloud Dataplex v1 API - Class ServiceCollectionExtensions (2.13.0)

public static class ServiceCollectionExtensions

Reference documentation and code samples for the Cloud Dataplex v1 API class ServiceCollectionExtensions.

Static class to provide extension methods to configure API clients.

Inheritance

object > ServiceCollectionExtensions

Namespace

Microsoft.Extensions.DependencyInjection

Assembly

Google.Cloud.Dataplex.V1.dll

Methods

AddContentServiceClient(IServiceCollection, Action<ContentServiceClientBuilder>)

public static IServiceCollection AddContentServiceClient(this IServiceCollection services, Action<ContentServiceClientBuilder> action = null)

Adds a singleton ContentServiceClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionContentServiceClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddDataScanServiceClient(IServiceCollection, Action<DataScanServiceClientBuilder>)

public static IServiceCollection AddDataScanServiceClient(this IServiceCollection services, Action<DataScanServiceClientBuilder> action = null)

Adds a singleton DataScanServiceClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionDataScanServiceClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddDataTaxonomyServiceClient(IServiceCollection, Action<DataTaxonomyServiceClientBuilder>)

public static IServiceCollection AddDataTaxonomyServiceClient(this IServiceCollection services, Action<DataTaxonomyServiceClientBuilder> action = null)

Adds a singleton DataTaxonomyServiceClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionDataTaxonomyServiceClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddDataplexServiceClient(IServiceCollection, Action<DataplexServiceClientBuilder>)

public static IServiceCollection AddDataplexServiceClient(this IServiceCollection services, Action<DataplexServiceClientBuilder> action = null)

Adds a singleton DataplexServiceClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionDataplexServiceClientBuilder

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

Returns
TypeDescription
IServiceCollection

AddMetadataServiceClient(IServiceCollection, Action<MetadataServiceClientBuilder>)

public static IServiceCollection AddMetadataServiceClient(this IServiceCollection services, Action<MetadataServiceClientBuilder> action = null)

Adds a singleton MetadataServiceClient to services.

Parameters
NameDescription
servicesIServiceCollection

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

actionActionMetadataServiceClientBuilder

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

Returns
TypeDescription
IServiceCollection