public static class ServiceCollectionExtensionsReference documentation and code samples for the Recommendations AI v1beta1 API class ServiceCollectionExtensions.
Static class to provide extension methods to configure API clients.
Namespace
Microsoft.Extensions.DependencyInjectionAssembly
Google.Cloud.RecommendationEngine.V1Beta1.dll
Methods
AddCatalogServiceClient(IServiceCollection, Action<CatalogServiceClientBuilder>)
public static IServiceCollection AddCatalogServiceClient(this IServiceCollection services, Action<CatalogServiceClientBuilder> action = null)Adds a singleton CatalogServiceClient 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 | 
        ActionCatalogServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
  | 
      
| Returns | |
|---|---|
| Type | Description | 
IServiceCollection | 
        |
AddCatalogServiceClient(IServiceCollection, Action<IServiceProvider, CatalogServiceClientBuilder>)
public static IServiceCollection AddCatalogServiceClient(this IServiceCollection services, Action<IServiceProvider, CatalogServiceClientBuilder> action)Adds a singleton CatalogServiceClient 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 | 
        ActionIServiceProviderCatalogServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
  | 
      
| Returns | |
|---|---|
| Type | Description | 
IServiceCollection | 
        |
AddPredictionApiKeyRegistryClient(IServiceCollection, Action<PredictionApiKeyRegistryClientBuilder>)
public static IServiceCollection AddPredictionApiKeyRegistryClient(this IServiceCollection services, Action<PredictionApiKeyRegistryClientBuilder> action = null)Adds a singleton PredictionApiKeyRegistryClient 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 | 
        ActionPredictionApiKeyRegistryClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
  | 
      
| Returns | |
|---|---|
| Type | Description | 
IServiceCollection | 
        |
AddPredictionApiKeyRegistryClient(IServiceCollection, Action<IServiceProvider, PredictionApiKeyRegistryClientBuilder>)
public static IServiceCollection AddPredictionApiKeyRegistryClient(this IServiceCollection services, Action<IServiceProvider, PredictionApiKeyRegistryClientBuilder> action)Adds a singleton PredictionApiKeyRegistryClient 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 | 
        ActionIServiceProviderPredictionApiKeyRegistryClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
  | 
      
| Returns | |
|---|---|
| Type | Description | 
IServiceCollection | 
        |
AddPredictionServiceClient(IServiceCollection, Action<PredictionServiceClientBuilder>)
public static IServiceCollection AddPredictionServiceClient(this IServiceCollection services, Action<PredictionServiceClientBuilder> action = null)Adds a singleton PredictionServiceClient 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 | 
        ActionPredictionServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
  | 
      
| Returns | |
|---|---|
| Type | Description | 
IServiceCollection | 
        |
AddPredictionServiceClient(IServiceCollection, Action<IServiceProvider, PredictionServiceClientBuilder>)
public static IServiceCollection AddPredictionServiceClient(this IServiceCollection services, Action<IServiceProvider, PredictionServiceClientBuilder> action)Adds a singleton PredictionServiceClient 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 | 
        ActionIServiceProviderPredictionServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
  | 
      
| Returns | |
|---|---|
| Type | Description | 
IServiceCollection | 
        |
AddUserEventServiceClient(IServiceCollection, Action<UserEventServiceClientBuilder>)
public static IServiceCollection AddUserEventServiceClient(this IServiceCollection services, Action<UserEventServiceClientBuilder> action = null)Adds a singleton UserEventServiceClient 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 | 
        ActionUserEventServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
  | 
      
| Returns | |
|---|---|
| Type | Description | 
IServiceCollection | 
        |
AddUserEventServiceClient(IServiceCollection, Action<IServiceProvider, UserEventServiceClientBuilder>)
public static IServiceCollection AddUserEventServiceClient(this IServiceCollection services, Action<IServiceProvider, UserEventServiceClientBuilder> action)Adds a singleton UserEventServiceClient 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 | 
        ActionIServiceProviderUserEventServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
  | 
      
| Returns | |
|---|---|
| Type | Description | 
IServiceCollection | 
        |