Beispiel #1
0
 /// <summary>
 /// Handles the error.
 /// </summary>
 /// <param name="sender">The sender.</param>
 /// <param name="e">The <see cref="ErrorEventArgs"/> instance containing the event data.</param>
 private void HandleError(object sender, ErrorEventArgs e)
 {
     // log
     if (Deployment == Deployment.Production)
         Logger.Log(LogLevel.Error, "http", e.Exception.Method + " " + e.Exception.Path);
 }
Beispiel #2
0
 /// <summary>
 /// Raises the <see cref="E:Error" /> event.
 /// </summary>
 /// <param name="e">The <see cref="ErrorEventArgs"/> instance containing the event data.</param>
 internal virtual void OnError(ErrorEventArgs e)
 {
     if (Error != null)
         Error(this, e);
 }