Class ErrorReportingExtensions (4.3.1)

public static class ErrorReportingExtensions

Extension methods for registering the Error Reporting component for Dependency Injection.

Inheritance

Object > ErrorReportingExtensions

Namespace

Google.Cloud.Diagnostics.Common

Assembly

Google.Cloud.Diagnostics.Common.dll

Methods

AddGoogleErrorReporting(IServiceCollection, ErrorReportingServiceOptions)

public static IServiceCollection AddGoogleErrorReporting(this IServiceCollection services, ErrorReportingServiceOptions options = null)

Registers the Error Reporting component for Dependency Injection.

Parameters
NameDescription
servicesIServiceCollection
optionsErrorReportingServiceOptions
Returns
TypeDescription
IServiceCollection