C# Class SharpRaven.Data.JsonPacketFactory

A default implementation of IJsonPacketFactory. Override the OnCreate method to adjust the values of the JsonPacket before it is sent to Sentry.
Inheritance: IJsonPacketFactory
Afficher le fichier Open project: getsentry/raven-csharp

Méthodes publiques

Méthode Description
Create ( string project, SentryEvent @event ) : JsonPacket

Creates a new instance of JsonPacket for the specified project, with the given event.

Méthodes protégées

Méthode Description
OnCreate ( JsonPacket jsonPacket ) : JsonPacket

Called when the JsonPacket has been created. Can be overridden to adjust the values of the jsonPacket before it is sent to Sentry.

Private Methods

Méthode Description
Create ( string project, Exception exception, SentryMessage message = null, ErrorLevel level = ErrorLevel.Error, string>.IDictionary tags = null, string fingerprint = null, object extra = null ) : JsonPacket
Create ( string project, SentryMessage message, ErrorLevel level = ErrorLevel.Info, string>.IDictionary tags = null, string fingerprint = null, object extra = null ) : JsonPacket

Method Details

Create() public méthode

Creates a new instance of JsonPacket for the specified project, with the given event.
public Create ( string project, SentryEvent @event ) : JsonPacket
project string The project.
@event SentryEvent
Résultat JsonPacket

OnCreate() protected méthode

Called when the JsonPacket has been created. Can be overridden to adjust the values of the jsonPacket before it is sent to Sentry.
protected OnCreate ( JsonPacket jsonPacket ) : JsonPacket
jsonPacket JsonPacket The json packet.
Résultat JsonPacket