Google Cloud Support v2 API - Class ServiceCollectionExtensions (1.2.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

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

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