コード例 #1
0
 public SharpbrakeClient(AirbrakeClient client, AirbrakeNoticeBuilder builder)
 {
   this.Client = new AirbrakeClient();
   this.Builder = new AirbrakeNoticeBuilder();
 }
コード例 #2
0
ファイル: Extensions.cs プロジェクト: powerinbox/SharpBrake
        /// <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);
        }
コード例 #3
0
ファイル: Extensions.cs プロジェクト: ccleung/SharpBrake
        /// <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);
        }
コード例 #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);
        }
コード例 #5
0
 public void SetUp()
 {
     this.client = new AirbrakeClient();
 }