Пример #1
0
 private void OnActionExceptionThrown(object sender, ActionExceptionThrownEventArgs e)
 {
     Log($"An error has occurred while running the action: '{e.DashButton.ActionUrl}' " +
         $"for button '{e.DashButton.Description}'. \n{e.Exception.Message}");
 }
Пример #2
0
 private void DashButtonListener_OnActionExceptionThrown(object sender, ActionExceptionThrownEventArgs e)
 {
     EventLog.WriteEntry($"An error has occurred while running the action: '{e.DashButton.ActionUrl}' " +
                         $"for button '{e.DashButton.Description}'. \n{e.Exception.Message}", EventLogEntryType.Error);
 }