Google Cloud Support v2 API - Class ServiceCollectionExtensions (1.3.0)

public static class ServiceCollectionExtensions

Reference documentation and code samples for the Google Cloud Support v2 API class ServiceCollectionExtensions.

Static class to provide extension methods to configure API clients.

Inheritance

object > ServiceCollectionExtensions

Namespace

Microsoft.Extensions.DependencyInjection

Assembly

Google.Cloud.Support.V2.dll

Methods

AddCaseAttachmentServiceClient(IServiceCollection, Action<CaseAttachmentServiceClientBuilder>)

public static IServiceCollection AddCaseAttachmentServiceClient(this IServiceCollection services, Action<CaseAttachmentServiceClientBuilder> action = null)

Adds a singleton CaseAttachmentServiceClient 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 ActionCaseAttachmentServiceClientBuilder

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

Returns
Type Description
IServiceCollection

AddCaseAttachmentServiceClient(IServiceCollection, Action<IServiceProvider, CaseAttachmentServiceClientBuilder>)

public static IServiceCollection AddCaseAttachmentServiceClient(this IServiceCollection services, Action<IServiceProvider, CaseAttachmentServiceClientBuilder> action)

Adds a singleton CaseAttachmentServiceClient 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 ActionIServiceProviderCaseAttachmentServiceClientBuilder

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

Returns
Type Description
IServiceCollection

AddCaseServiceClient(IServiceCollection, Action<CaseServiceClientBuilder>)

public static IServiceCollection AddCaseServiceClient(this IServiceCollection services, Action<CaseServiceClientBuilder> action = null)

Adds a singleton CaseServiceClient 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 ActionCaseServiceClientBuilder

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

Returns
Type Description
IServiceCollection

AddCaseServiceClient(IServiceCollection, Action<IServiceProvider, CaseServiceClientBuilder>)

public static IServiceCollection AddCaseServiceClient(this IServiceCollection services, Action<IServiceProvider, CaseServiceClientBuilder> action)

Adds a singleton CaseServiceClient 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 ActionIServiceProviderCaseServiceClientBuilder

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

Returns
Type Description
IServiceCollection

AddCommentServiceClient(IServiceCollection, Action<CommentServiceClientBuilder>)

public static IServiceCollection AddCommentServiceClient(this IServiceCollection services, Action<CommentServiceClientBuilder> action = null)

Adds a singleton CommentServiceClient 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 ActionCommentServiceClientBuilder

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

Returns
Type Description
IServiceCollection

AddCommentServiceClient(IServiceCollection, Action<IServiceProvider, CommentServiceClientBuilder>)

public static IServiceCollection AddCommentServiceClient(this IServiceCollection services, Action<IServiceProvider, CommentServiceClientBuilder> action)

Adds a singleton CommentServiceClient 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 ActionIServiceProviderCommentServiceClientBuilder

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

Returns
Type Description
IServiceCollection