C# Class GoogleCloudSamples.ErrorReportingSample

显示文件 Open project: GoogleCloudPlatform/dotnet-docs-samples Class Usage Examples

Public Methods

Method Description
Main ( string args ) : void

Private Methods

Method Description
CreateErrorReportingClient ( ) : ClouderrorreportingService

Create the Error Reporting service (ClouderrorreportingService) with the Application Default Credentials and the proper scopes. See: https://developers.google.com/identity/protocols/application-default-credentials.

CreateReportRequest ( Exception e ) : ReportRequest

Creates a ReportRequest from a given exception.

report ( Exception e ) : void

Report an exception to the Error Reporting service.

Method Details

Main() public static method

public static Main ( string args ) : void
args string
return void