Google Cloud Error Reporting v1beta1 API - Class ServiceCollectionExtensions (3.0.0-beta02)

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.

Inheritance

Object > ServiceCollectionExtensions

Namespace

Microsoft.Extensions.DependencyInjection

Assembly

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
NameDescription
servicesIServiceCollection

The service collection to add the client to. The services are used to configure the client when requested.

actionAction<ErrorGroupServiceClientBuilder>

An optional action to invoke on the client builder. This is invoked before services from services are used.

Returns
TypeDescription
IServiceCollection

AddErrorStatsServiceClient(IServiceCollection, Action<ErrorStatsServiceClientBuilder>)

public static IServiceCollection AddErrorStatsServiceClient(this IServiceCollection services, Action<ErrorStatsServiceClientBuilder> action = null)

Adds a singleton ErrorStatsServiceClient to services.

Parameters
NameDescription
servicesIServiceCollection

The service collection to add the client to. The services are used to configure the client when requested.

actionAction<ErrorStatsServiceClientBuilder>

An optional action to invoke on the client builder. This is invoked before services from services are used.

Returns
TypeDescription
IServiceCollection

AddReportErrorsServiceClient(IServiceCollection, Action<ReportErrorsServiceClientBuilder>)

public static IServiceCollection AddReportErrorsServiceClient(this IServiceCollection services, Action<ReportErrorsServiceClientBuilder> action = null)

Adds a singleton ReportErrorsServiceClient to services.

Parameters
NameDescription
servicesIServiceCollection

The service collection to add the client to. The services are used to configure the client when requested.

actionAction<ReportErrorsServiceClientBuilder>

An optional action to invoke on the client builder. This is invoked before services from services are used.

Returns
TypeDescription
IServiceCollection