Google.Cloud.Diagnostics.Common - Class ErrorReportingExtensions (5.1.0)

public static class ErrorReportingExtensions

Reference documentation and code samples for the Google.Cloud.Diagnostics.Common class ErrorReportingExtensions.

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

Inheritance

object > ErrorReportingExtensions

Namespace

GoogleCloudGoogle.Cloud.DiagnosticsCommon

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