public SharpbrakeClient(AirbrakeClient client, AirbrakeNoticeBuilder builder) { this.Client = new AirbrakeClient(); this.Builder = new AirbrakeNoticeBuilder(); }
/// <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); }
/// <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); }
/// <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); }
public void SetUp() { this.client = new AirbrakeClient(); }