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.
Namespace
Google.Cloud.Diagnostics.CommonAssembly
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 | |
---|---|
Name | Description |
services |
IServiceCollection |
options |
ErrorReportingServiceOptions |
Returns | |
---|---|
Type | Description |
IServiceCollection |