C# 클래스 Bugsnag.Library.BugSnag

.NET notifier for BugSnag error reporting
파일 보기 프로젝트 열기: Granicus/net-bugsnag 1 사용 예제들

공개 메소드들

메소드 설명
BugSnag ( ) : System

Constructor to set defaults

BugSnag ( string apiKey ) : System

Creates a bugsnag notifier and sets the API key

Notify ( ) : void

Gathers information for the last error (if any error is available) and reports it to BugSnag using information from the application configuration file and other defaults

Notify ( List exList, object extraData ) : void

Report a list of exceptions to BugSnag

Notify ( List exList, string userId, string context, object extraData ) : void

Report a list of exceptions to Bugsnag with other per-request or per-session data

Notify ( System ex, object extraData ) : void

Report a single exception to BugSnag using defaults

Notify ( System ex, string userId, string context, object extraData ) : void

Report an exception to Bugsnag with other per-request or per-session data

Notify ( object extraData ) : void

Gathers information for the last error (if any error is available) and reports it to BugSnag using information from the application configuration file and other defaults

비공개 메소드들

메소드 설명
GetDefaultUserId ( ) : string

Gets the default UserId to use when reporting errors

ProcessExceptions ( List exList, string Context, string UserId, object extraData ) : Event

Process a list of exceptions into an event

SendNotification ( Bugsnag.Library.Data.ErrorNotification notification, bool useSSL ) : void

Sends current set of events to BugSnag via a JSON post

메소드 상세

BugSnag() 공개 메소드

Constructor to set defaults
public BugSnag ( ) : System
리턴 System

BugSnag() 공개 메소드

Creates a bugsnag notifier and sets the API key
public BugSnag ( string apiKey ) : System
apiKey string
리턴 System

Notify() 공개 메소드

Gathers information for the last error (if any error is available) and reports it to BugSnag using information from the application configuration file and other defaults
public Notify ( ) : void
리턴 void

Notify() 공개 메소드

Report a list of exceptions to BugSnag
public Notify ( List exList, object extraData ) : void
exList List The list of Exceptions to report
extraData object Data that will be sent as meta-data along with this error
리턴 void

Notify() 공개 메소드

Report a list of exceptions to Bugsnag with other per-request or per-session data
public Notify ( List exList, string userId, string context, object extraData ) : void
exList List The list of exceptions to report
userId string An ID representing the current application's user. If this isn't set /// this defaults to sessionId if available
context string The context that is currently active in the application
extraData object Data that will be sent as meta-data along with every error
리턴 void

Notify() 공개 메소드

Report a single exception to BugSnag using defaults
public Notify ( System ex, object extraData ) : void
ex System The exception to report
extraData object Data that will be sent as meta-data along with this error
리턴 void

Notify() 공개 메소드

Report an exception to Bugsnag with other per-request or per-session data
public Notify ( System ex, string userId, string context, object extraData ) : void
ex System The exception to report
userId string An ID representing the current application's user. If this isn't set /// this defaults to sessionId if available
context string The context that is currently active in the application
extraData object Data that will be sent as meta-data along with this error
리턴 void

Notify() 공개 메소드

Gathers information for the last error (if any error is available) and reports it to BugSnag using information from the application configuration file and other defaults
public Notify ( object extraData ) : void
extraData object Any extra data to pass when reporting this error
리턴 void