public static class ServiceCollectionExtensionsReference documentation and code samples for the Chronicle v1 API class ServiceCollectionExtensions.
Static class to provide extension methods to configure API clients.
Namespace
Microsoft.Extensions.DependencyInjectionAssembly
Google.Cloud.Chronicle.V1.dll
Methods
AddDataAccessControlServiceClient(IServiceCollection, Action<DataAccessControlServiceClientBuilder>)
public static IServiceCollection AddDataAccessControlServiceClient(this IServiceCollection services, Action<DataAccessControlServiceClientBuilder> action = null)Adds a singleton DataAccessControlServiceClient 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 |
ActionDataAccessControlServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddDataAccessControlServiceClient(IServiceCollection, Action<IServiceProvider, DataAccessControlServiceClientBuilder>)
public static IServiceCollection AddDataAccessControlServiceClient(this IServiceCollection services, Action<IServiceProvider, DataAccessControlServiceClientBuilder> action)Adds a singleton DataAccessControlServiceClient 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.IServiceProviderDataAccessControlServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddEntityServiceClient(IServiceCollection, Action<EntityServiceClientBuilder>)
public static IServiceCollection AddEntityServiceClient(this IServiceCollection services, Action<EntityServiceClientBuilder> action = null)Adds a singleton EntityServiceClient 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 |
ActionEntityServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddEntityServiceClient(IServiceCollection, Action<IServiceProvider, EntityServiceClientBuilder>)
public static IServiceCollection AddEntityServiceClient(this IServiceCollection services, Action<IServiceProvider, EntityServiceClientBuilder> action)Adds a singleton EntityServiceClient 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.IServiceProviderEntityServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddInstanceServiceClient(IServiceCollection, Action<InstanceServiceClientBuilder>)
public static IServiceCollection AddInstanceServiceClient(this IServiceCollection services, Action<InstanceServiceClientBuilder> action = null)Adds a singleton InstanceServiceClient 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 |
ActionInstanceServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddInstanceServiceClient(IServiceCollection, Action<IServiceProvider, InstanceServiceClientBuilder>)
public static IServiceCollection AddInstanceServiceClient(this IServiceCollection services, Action<IServiceProvider, InstanceServiceClientBuilder> action)Adds a singleton InstanceServiceClient 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.IServiceProviderInstanceServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddReferenceListServiceClient(IServiceCollection, Action<ReferenceListServiceClientBuilder>)
public static IServiceCollection AddReferenceListServiceClient(this IServiceCollection services, Action<ReferenceListServiceClientBuilder> action = null)Adds a singleton ReferenceListServiceClient 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 |
ActionReferenceListServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddReferenceListServiceClient(IServiceCollection, Action<IServiceProvider, ReferenceListServiceClientBuilder>)
public static IServiceCollection AddReferenceListServiceClient(this IServiceCollection services, Action<IServiceProvider, ReferenceListServiceClientBuilder> action)Adds a singleton ReferenceListServiceClient 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.IServiceProviderReferenceListServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddRuleServiceClient(IServiceCollection, Action<RuleServiceClientBuilder>)
public static IServiceCollection AddRuleServiceClient(this IServiceCollection services, Action<RuleServiceClientBuilder> action = null)Adds a singleton RuleServiceClient 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 |
ActionRuleServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddRuleServiceClient(IServiceCollection, Action<IServiceProvider, RuleServiceClientBuilder>)
public static IServiceCollection AddRuleServiceClient(this IServiceCollection services, Action<IServiceProvider, RuleServiceClientBuilder> action)Adds a singleton RuleServiceClient 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.IServiceProviderRuleServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|