public static class ServiceCollectionExtensions
Reference 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 |
IServiceCollection The service collection to add the client to. The services are used to configure the client when requested. |
action |
ActionErrorGroupServiceClientBuilder An 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 |
IServiceCollection The service collection to add the client to. The services are used to configure the client when requested. |
action |
ActionErrorStatsServiceClientBuilder An 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 |
IServiceCollection The service collection to add the client to. The services are used to configure the client when requested. |
action |
ActionReportErrorsServiceClientBuilder An optional action to invoke on the client builder. This is invoked before services from
|
Returns | |
---|---|
Type | Description |
IServiceCollection |