public static class ServiceCollectionExtensions
Reference documentation and code samples for the API hub v1 API class ServiceCollectionExtensions.
Static class to provide extension methods to configure API clients.
Namespace
Microsoft.Extensions.DependencyInjectionAssembly
Google.Cloud.ApiHub.V1.dll
Methods
AddApiHubClient(IServiceCollection, Action<ApiHubClientBuilder>)
public static IServiceCollection AddApiHubClient(this IServiceCollection services, Action<ApiHubClientBuilder> action = null)
Adds a singleton ApiHubClient 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 |
ActionApiHubClientBuilder An optional action to invoke on the client builder. This is invoked before services from
|
Returns | |
---|---|
Type | Description |
IServiceCollection |
AddApiHubClient(IServiceCollection, Action<IServiceProvider, ApiHubClientBuilder>)
public static IServiceCollection AddApiHubClient(this IServiceCollection services, Action<IServiceProvider, ApiHubClientBuilder> action)
Adds a singleton ApiHubClient 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 |
ActionSystem.IServiceProviderApiHubClientBuilder An optional action to invoke on the client builder. This is invoked before services from
|
Returns | |
---|---|
Type | Description |
IServiceCollection |
AddApiHubDependenciesClient(IServiceCollection, Action<ApiHubDependenciesClientBuilder>)
public static IServiceCollection AddApiHubDependenciesClient(this IServiceCollection services, Action<ApiHubDependenciesClientBuilder> action = null)
Adds a singleton ApiHubDependenciesClient 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 |
ActionApiHubDependenciesClientBuilder An optional action to invoke on the client builder. This is invoked before services from
|
Returns | |
---|---|
Type | Description |
IServiceCollection |
AddApiHubDependenciesClient(IServiceCollection, Action<IServiceProvider, ApiHubDependenciesClientBuilder>)
public static IServiceCollection AddApiHubDependenciesClient(this IServiceCollection services, Action<IServiceProvider, ApiHubDependenciesClientBuilder> action)
Adds a singleton ApiHubDependenciesClient 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 |
ActionSystem.IServiceProviderApiHubDependenciesClientBuilder An optional action to invoke on the client builder. This is invoked before services from
|
Returns | |
---|---|
Type | Description |
IServiceCollection |
AddApiHubPluginClient(IServiceCollection, Action<ApiHubPluginClientBuilder>)
public static IServiceCollection AddApiHubPluginClient(this IServiceCollection services, Action<ApiHubPluginClientBuilder> action = null)
Adds a singleton ApiHubPluginClient 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 |
ActionApiHubPluginClientBuilder An optional action to invoke on the client builder. This is invoked before services from
|
Returns | |
---|---|
Type | Description |
IServiceCollection |
AddApiHubPluginClient(IServiceCollection, Action<IServiceProvider, ApiHubPluginClientBuilder>)
public static IServiceCollection AddApiHubPluginClient(this IServiceCollection services, Action<IServiceProvider, ApiHubPluginClientBuilder> action)
Adds a singleton ApiHubPluginClient 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 |
ActionSystem.IServiceProviderApiHubPluginClientBuilder An optional action to invoke on the client builder. This is invoked before services from
|
Returns | |
---|---|
Type | Description |
IServiceCollection |
AddHostProjectRegistrationServiceClient(IServiceCollection, Action<HostProjectRegistrationServiceClientBuilder>)
public static IServiceCollection AddHostProjectRegistrationServiceClient(this IServiceCollection services, Action<HostProjectRegistrationServiceClientBuilder> action = null)
Adds a singleton HostProjectRegistrationServiceClient 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 |
ActionHostProjectRegistrationServiceClientBuilder An optional action to invoke on the client builder. This is invoked before services from
|
Returns | |
---|---|
Type | Description |
IServiceCollection |
AddHostProjectRegistrationServiceClient(IServiceCollection, Action<IServiceProvider, HostProjectRegistrationServiceClientBuilder>)
public static IServiceCollection AddHostProjectRegistrationServiceClient(this IServiceCollection services, Action<IServiceProvider, HostProjectRegistrationServiceClientBuilder> action)
Adds a singleton HostProjectRegistrationServiceClient 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 |
ActionSystem.IServiceProviderHostProjectRegistrationServiceClientBuilder An optional action to invoke on the client builder. This is invoked before services from
|
Returns | |
---|---|
Type | Description |
IServiceCollection |
AddLintingServiceClient(IServiceCollection, Action<LintingServiceClientBuilder>)
public static IServiceCollection AddLintingServiceClient(this IServiceCollection services, Action<LintingServiceClientBuilder> action = null)
Adds a singleton LintingServiceClient 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 |
ActionLintingServiceClientBuilder An optional action to invoke on the client builder. This is invoked before services from
|
Returns | |
---|---|
Type | Description |
IServiceCollection |
AddLintingServiceClient(IServiceCollection, Action<IServiceProvider, LintingServiceClientBuilder>)
public static IServiceCollection AddLintingServiceClient(this IServiceCollection services, Action<IServiceProvider, LintingServiceClientBuilder> action)
Adds a singleton LintingServiceClient 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 |
ActionSystem.IServiceProviderLintingServiceClientBuilder An optional action to invoke on the client builder. This is invoked before services from
|
Returns | |
---|---|
Type | Description |
IServiceCollection |
AddProvisioningClient(IServiceCollection, Action<ProvisioningClientBuilder>)
public static IServiceCollection AddProvisioningClient(this IServiceCollection services, Action<ProvisioningClientBuilder> action = null)
Adds a singleton ProvisioningClient 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 |
ActionProvisioningClientBuilder An optional action to invoke on the client builder. This is invoked before services from
|
Returns | |
---|---|
Type | Description |
IServiceCollection |
AddProvisioningClient(IServiceCollection, Action<IServiceProvider, ProvisioningClientBuilder>)
public static IServiceCollection AddProvisioningClient(this IServiceCollection services, Action<IServiceProvider, ProvisioningClientBuilder> action)
Adds a singleton ProvisioningClient 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 |
ActionSystem.IServiceProviderProvisioningClientBuilder An optional action to invoke on the client builder. This is invoked before services from
|
Returns | |
---|---|
Type | Description |
IServiceCollection |
AddRuntimeProjectAttachmentServiceClient(IServiceCollection, Action<RuntimeProjectAttachmentServiceClientBuilder>)
public static IServiceCollection AddRuntimeProjectAttachmentServiceClient(this IServiceCollection services, Action<RuntimeProjectAttachmentServiceClientBuilder> action = null)
Adds a singleton RuntimeProjectAttachmentServiceClient 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 |
ActionRuntimeProjectAttachmentServiceClientBuilder An optional action to invoke on the client builder. This is invoked before services from
|
Returns | |
---|---|
Type | Description |
IServiceCollection |
AddRuntimeProjectAttachmentServiceClient(IServiceCollection, Action<IServiceProvider, RuntimeProjectAttachmentServiceClientBuilder>)
public static IServiceCollection AddRuntimeProjectAttachmentServiceClient(this IServiceCollection services, Action<IServiceProvider, RuntimeProjectAttachmentServiceClientBuilder> action)
Adds a singleton RuntimeProjectAttachmentServiceClient 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 |
ActionSystem.IServiceProviderRuntimeProjectAttachmentServiceClientBuilder An optional action to invoke on the client builder. This is invoked before services from
|
Returns | |
---|---|
Type | Description |
IServiceCollection |