Esempio n. 1
0
 /// <summary>
 /// General constructor for exception logging
 /// </summary>
 /// <param name="dsn">Sentry dsn</param>
 /// <param name="jsonPacketFactory">Sentry configuration</param>
 /// <param name="sentryRequestFactory">Sentry configuration</param>
 /// <param name="sentryUserFactory">Sentry configuration</param>
 public SentryInterceptor(Dsn dsn, IJsonPacketFactory jsonPacketFactory = null,
                          ISentryRequestFactory sentryRequestFactory    = null, ISentryUserFactory sentryUserFactory = null)
 {
     _sentryClient = new RavenClient(dsn, jsonPacketFactory, sentryRequestFactory, sentryUserFactory);
     _breadcrumber = new Breadcrumber(_sentryClient);
 }