Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RollbarSink"/> class.
 /// </summary>
 /// <param name="rollbarConfig">The Rollbar configuration.</param>
 /// <param name="rollbarBlockingLoggingTimeout">The Rollbar blocking logging timeout.</param>
 /// <param name="formatProvider">The format provider.</param>
 public RollbarSink(
     IRollbarConfig rollbarConfig,
     TimeSpan?rollbarBlockingLoggingTimeout,
     IFormatProvider formatProvider
     )
 {
     this._rollbarPlugIn =
         new RollbarPlugInCore(rollbarConfig, rollbarBlockingLoggingTimeout, formatProvider);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RollbarSink"/> class.
 /// </summary>
 /// <param name="rollbarAccessToken">The Rollbar access token.</param>
 /// <param name="rollbarEnvironment">The Rollbar environment.</param>
 /// <param name="rollbarBlockingLoggingTimeout">The Rollbar blocking logging timeout.</param>
 /// <param name="formatProvider">The format provider.</param>
 public RollbarSink(
     string rollbarAccessToken,
     string rollbarEnvironment,
     TimeSpan?rollbarBlockingLoggingTimeout,
     IFormatProvider formatProvider
     )
     : this(
         RollbarPlugInCore.CreateConfig(rollbarAccessToken : rollbarAccessToken, rollbarEnvironment : rollbarEnvironment),
         rollbarBlockingLoggingTimeout,
         formatProvider
         )
 {
 }