C# Класс Bugsnag.Library.BugSnag

.NET notifier for BugSnag error reporting
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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