Example #1
0
 public SharpbrakeClient(AirbrakeClient client, AirbrakeNoticeBuilder builder)
 {
   this.Client = new AirbrakeClient();
   this.Builder = new AirbrakeNoticeBuilder();
 }
Example #2
0
        /// <summary>
        /// Sends the <paramref name="exception"/> to Airbrake.
        /// </summary>
        /// <param name="exception">The exception to send to Airbrake.</param>
        /// <param name="extraParams">Extra parameters for logging </param>
        public static void SendToAirbrake(this Exception exception, IEnumerable <KeyValuePair <string, string> > extraParams = null)
        {
            var client = new AirbrakeClient();

            client.Send(exception, extraParams);
        }
Example #3
0
        /// <summary>
        /// Sends the <paramref name="exception"/> to Airbrake.
        /// </summary>
        /// <param name="exception">The exception to send to Airbrake.</param>
        /// <param name="info"> Additional info to send to Airbrake.</param>
        public static void SendToAirbrake(this Exception exception, Dictionary <string, string> info = null)
        {
            var client = new AirbrakeClient();

            client.Send(exception, info);
        }
Example #4
0
        /// <summary>
        /// Sends the <paramref name="exception"/> to Airbrake.
        /// </summary>
        /// <param name="exception">The exception to send to Airbrake.</param>
        public static void SendToAirbrake(this Exception exception)
        {
            var client = new AirbrakeClient();

            client.Send(exception);
        }
Example #5
0
 public void SetUp()
 {
     this.client = new AirbrakeClient();
 }