public static class ServiceCollectionExtensionsReference documentation and code samples for the Vector Search v1 API class ServiceCollectionExtensions.
Static class to provide extension methods to configure API clients.
Namespace
Microsoft.Extensions.DependencyInjectionAssembly
Google.Cloud.VectorSearch.V1.dll
Methods
AddDataObjectSearchServiceClient(IServiceCollection, Action<DataObjectSearchServiceClientBuilder>)
public static IServiceCollection AddDataObjectSearchServiceClient(this IServiceCollection services, Action<DataObjectSearchServiceClientBuilder> action = null)Adds a singleton DataObjectSearchServiceClient 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 |
ActionDataObjectSearchServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddDataObjectSearchServiceClient(IServiceCollection, Action<IServiceProvider, DataObjectSearchServiceClientBuilder>)
public static IServiceCollection AddDataObjectSearchServiceClient(this IServiceCollection services, Action<IServiceProvider, DataObjectSearchServiceClientBuilder> action)Adds a singleton DataObjectSearchServiceClient 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 |
ActionSystem.IServiceProviderDataObjectSearchServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddDataObjectServiceClient(IServiceCollection, Action<DataObjectServiceClientBuilder>)
public static IServiceCollection AddDataObjectServiceClient(this IServiceCollection services, Action<DataObjectServiceClientBuilder> action = null)Adds a singleton DataObjectServiceClient 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 |
ActionDataObjectServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddDataObjectServiceClient(IServiceCollection, Action<IServiceProvider, DataObjectServiceClientBuilder>)
public static IServiceCollection AddDataObjectServiceClient(this IServiceCollection services, Action<IServiceProvider, DataObjectServiceClientBuilder> action)Adds a singleton DataObjectServiceClient 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 |
ActionSystem.IServiceProviderDataObjectServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddVectorSearchServiceClient(IServiceCollection, Action<VectorSearchServiceClientBuilder>)
public static IServiceCollection AddVectorSearchServiceClient(this IServiceCollection services, Action<VectorSearchServiceClientBuilder> action = null)Adds a singleton VectorSearchServiceClient 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 |
ActionVectorSearchServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddVectorSearchServiceClient(IServiceCollection, Action<IServiceProvider, VectorSearchServiceClientBuilder>)
public static IServiceCollection AddVectorSearchServiceClient(this IServiceCollection services, Action<IServiceProvider, VectorSearchServiceClientBuilder> action)Adds a singleton VectorSearchServiceClient 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 |
ActionSystem.IServiceProviderVectorSearchServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|