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

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
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 services are used.

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 IServiceCollection

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

action ActionIServiceProviderErrorGroupServiceClientBuilder

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

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 services are used.

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 IServiceCollection

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

action ActionIServiceProviderErrorStatsServiceClientBuilder

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

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 services are used.

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 IServiceCollection

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

action ActionIServiceProviderReportErrorsServiceClientBuilder

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

Returns
Type Description
IServiceCollection