public static class ServiceCollectionExtensionsReference documentation and code samples for the Google Cloud Error Reporting v1beta1 API class ServiceCollectionExtensions.
Static class to provide extension methods to configure API clients.
Namespace
Microsoft.Extensions.DependencyInjectionAssembly
Google.Cloud.ErrorReporting.V1Beta1.dll
Methods
AddErrorGroupServiceClient(IServiceCollection, Action<ErrorGroupServiceClientBuilder>)
public static IServiceCollection AddErrorGroupServiceClient(this IServiceCollection services, Action<ErrorGroupServiceClientBuilder> action = null)Adds a singleton ErrorGroupServiceClient 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 |
ActionErrorGroupServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddErrorGroupServiceClient(IServiceCollection, Action<IServiceProvider, ErrorGroupServiceClientBuilder>)
public static IServiceCollection AddErrorGroupServiceClient(this IServiceCollection services, Action<IServiceProvider, ErrorGroupServiceClientBuilder> action)Adds a singleton ErrorGroupServiceClient 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 |
ActionIServiceProviderErrorGroupServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddErrorStatsServiceClient(IServiceCollection, Action<ErrorStatsServiceClientBuilder>)
public static IServiceCollection AddErrorStatsServiceClient(this IServiceCollection services, Action<ErrorStatsServiceClientBuilder> action = null)Adds a singleton ErrorStatsServiceClient 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 |
ActionErrorStatsServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddErrorStatsServiceClient(IServiceCollection, Action<IServiceProvider, ErrorStatsServiceClientBuilder>)
public static IServiceCollection AddErrorStatsServiceClient(this IServiceCollection services, Action<IServiceProvider, ErrorStatsServiceClientBuilder> action)Adds a singleton ErrorStatsServiceClient 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 |
ActionIServiceProviderErrorStatsServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddReportErrorsServiceClient(IServiceCollection, Action<ReportErrorsServiceClientBuilder>)
public static IServiceCollection AddReportErrorsServiceClient(this IServiceCollection services, Action<ReportErrorsServiceClientBuilder> action = null)Adds a singleton ReportErrorsServiceClient 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 |
ActionReportErrorsServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|
AddReportErrorsServiceClient(IServiceCollection, Action<IServiceProvider, ReportErrorsServiceClientBuilder>)
public static IServiceCollection AddReportErrorsServiceClient(this IServiceCollection services, Action<IServiceProvider, ReportErrorsServiceClientBuilder> action)Adds a singleton ReportErrorsServiceClient 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 |
ActionIServiceProviderReportErrorsServiceClientBuilderAn optional action to invoke on the client builder. This is invoked before services from
|
| Returns | |
|---|---|
| Type | Description |
IServiceCollection |
|