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.
Namespace
Microsoft.Extensions.DependencyInjectionAssembly
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
|
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
|
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
|
Returns | |
---|---|
Type | Description |
IServiceCollection |