public static class ServiceCollectionExtensionsReference documentation and code samples for the Cloud Workstations v1 API class ServiceCollectionExtensions.
Static class to provide extension methods to configure API clients.
Namespace
Microsoft.Extensions.DependencyInjectionAssembly
Google.Cloud.Workstations.V1.dll
Methods
AddWorkstationsClient(IServiceCollection, Action<WorkstationsClientBuilder>)
public static IServiceCollection AddWorkstationsClient(this IServiceCollection services, Action<WorkstationsClientBuilder> action = null)Adds a singleton WorkstationsClient to services.
| Parameters | |
|---|---|
| Name | Description |
services |
IServiceCollectionThe service collection to add the client to. The services are used to configure the client when requested. |
action |
ActionWorkstationsClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddWorkstationsClient(IServiceCollection, Action<IServiceProvider, WorkstationsClientBuilder>)
public static IServiceCollection AddWorkstationsClient(this IServiceCollection services, Action<IServiceProvider, WorkstationsClientBuilder> action)Adds a singleton WorkstationsClient to services.
| Parameters | |
|---|---|
| Name | Description |
services |
IServiceCollectionThe service collection to add the client to. The services are used to configure the client when requested. |
action |
ActionIServiceProviderWorkstationsClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|