C# 클래스 SharpRaven.RavenClient

The Raven Client, responsible for capturing exceptions and sending them to Sentry.
상속: IRavenClient
파일 보기 프로젝트 열기: getsentry/raven-csharp 1 사용 예제들

공개 메소드들

메소드 설명
Capture ( SentryEvent @event ) : string

Captures the specified event.

CaptureAsync ( SentryEvent @event ) : Task

Captures the event.

RavenClient ( SharpRaven.Dsn dsn, IJsonPacketFactory jsonPacketFactory = null, ISentryRequestFactory sentryRequestFactory = null, ISentryUserFactory sentryUserFactory = null ) : System

Initializes a new instance of the RavenClient class.

RavenClient ( IJsonPacketFactory jsonPacketFactory = null ) : System

Initializes a new instance of the RavenClient class. Sentry Data Source Name will be read from sharpRaven section in your app.config or web.config.

RavenClient ( string dsn, IJsonPacketFactory jsonPacketFactory = null, ISentryRequestFactory sentryRequestFactory = null, ISentryUserFactory sentryUserFactory = null ) : System

Initializes a new instance of the RavenClient class.

보호된 메소드들

메소드 설명
PreparePacket ( JsonPacket packet ) : JsonPacket

Performs JsonPacket post-processing prior to being sent to Sentry.

Send ( JsonPacket packet ) : string

Sends the specified packet to Sentry.

SendAsync ( JsonPacket packet ) : Task

Sends the specified packet to Sentry.

비공개 메소드들

메소드 설명
CaptureEvent ( Exception e ) : string
CaptureEvent ( Exception e, string>.Dictionary tags ) : string
CaptureException ( Exception exception, SentryMessage message = null, ErrorLevel level = ErrorLevel.Error, string>.IDictionary tags = null, string fingerprint = null, object extra = null ) : string
CaptureExceptionAsync ( Exception exception, SentryMessage message = null, ErrorLevel level = ErrorLevel.Error, string>.IDictionary tags = null, string fingerprint = null, object extra = null ) : Task
CaptureMessage ( SentryMessage message, ErrorLevel level = ErrorLevel.Info, string>.IDictionary tags = null, string fingerprint = null, object extra = null ) : string
CaptureMessageAsync ( SentryMessage message, ErrorLevel level = ErrorLevel.Info, string>.IDictionary tags = null, string fingerprint = null, object extra = null ) : Task
HandleException ( Exception exception ) : string
MergeTags ( string>.IDictionary tags = null ) : string>.IDictionary

메소드 상세

Capture() 공개 메소드

Captures the specified event.
public Capture ( SentryEvent @event ) : string
@event SharpRaven.Data.SentryEvent
리턴 string

CaptureAsync() 공개 메소드

Captures the event.
public CaptureAsync ( SentryEvent @event ) : Task
@event SharpRaven.Data.SentryEvent
리턴 Task

PreparePacket() 보호된 메소드

Performs JsonPacket post-processing prior to being sent to Sentry.
protected PreparePacket ( JsonPacket packet ) : JsonPacket
packet SharpRaven.Data.JsonPacket The prepared which has cleared the creation pipeline.
리턴 SharpRaven.Data.JsonPacket

RavenClient() 공개 메소드

Initializes a new instance of the RavenClient class.
dsn
public RavenClient ( SharpRaven.Dsn dsn, IJsonPacketFactory jsonPacketFactory = null, ISentryRequestFactory sentryRequestFactory = null, ISentryUserFactory sentryUserFactory = null ) : System
dsn SharpRaven.Dsn The Data Source Name in Sentry.
jsonPacketFactory IJsonPacketFactory The optional factory that will be used to create the that will be sent to Sentry.
sentryRequestFactory ISentryRequestFactory The optional factory that will be used to create the that will be sent to Sentry.
sentryUserFactory ISentryUserFactory The optional factory that will be used to create the that will be sent to Sentry.
리턴 System

RavenClient() 공개 메소드

Initializes a new instance of the RavenClient class. Sentry Data Source Name will be read from sharpRaven section in your app.config or web.config.
public RavenClient ( IJsonPacketFactory jsonPacketFactory = null ) : System
jsonPacketFactory IJsonPacketFactory The optional factory that will be used to create the that will be sent to Sentry.
리턴 System

RavenClient() 공개 메소드

Initializes a new instance of the RavenClient class.
public RavenClient ( string dsn, IJsonPacketFactory jsonPacketFactory = null, ISentryRequestFactory sentryRequestFactory = null, ISentryUserFactory sentryUserFactory = null ) : System
dsn string The Data Source Name in Sentry.
jsonPacketFactory IJsonPacketFactory The optional factory that will be used to create the that will be sent to Sentry.
sentryRequestFactory ISentryRequestFactory The optional factory that will be used to create the that will be sent to Sentry.
sentryUserFactory ISentryUserFactory The optional factory that will be used to create the that will be sent to Sentry.
리턴 System

Send() 보호된 메소드

Sends the specified packet to Sentry.
protected Send ( JsonPacket packet ) : string
packet SharpRaven.Data.JsonPacket The packet to send.
리턴 string

SendAsync() 보호된 메소드

Sends the specified packet to Sentry.
protected SendAsync ( JsonPacket packet ) : Task
packet SharpRaven.Data.JsonPacket The packet to send.
리턴 Task