public static void TraceAndLog(Guid enlistmentId, string transactionId, string stateMachine, string currentState, StateMachineHistory history, string eventName, string eventDetails)
 {
     using (Activity.CreateActivity(enlistmentId))
     {
         DiagnosticUtility.EventLog.LogEvent(TraceEventType.Warning, EventLogCategory.StateMachine, (EventLogEventId) (-1073545203), new string[] { transactionId, stateMachine, currentState, (history == null) ? string.Empty : history.ToString(), eventName, string.IsNullOrEmpty(eventDetails) ? string.Empty : eventDetails });
     }
 }
 public static void TraceAndLog(Guid enlistmentId, string transactionId, string stateMachine, string currentState, StateMachineHistory history, string eventName, string eventDetails)
 {
     using (Activity.CreateActivity(enlistmentId))
     {
         DiagnosticUtility.EventLog.LogEvent(TraceEventType.Warning, EventLogCategory.StateMachine, (EventLogEventId)(-1073545203), new string[] { transactionId, stateMachine, currentState, (history == null) ? string.Empty : history.ToString(), eventName, string.IsNullOrEmpty(eventDetails) ? string.Empty : eventDetails });
     }
 }
Beispiel #3
0
 public static void TraceAndLog(Guid enlistmentId, string transactionId, string stateMachineName, string currentState, StateMachineHistory history, Exception e)
 {
     DiagnosticUtility.EventLog.LogEvent(TraceEventType.Critical, EventLogCategory.StateMachine, (EventLogEventId)(-1073545215), new string[] { transactionId, stateMachineName, currentState, (history == null) ? string.Empty : history.ToString(), enlistmentId.ToString(), e.ToString() });
 }
 public static void TraceAndLog(Guid enlistmentId, string transactionId, string stateMachineName, string currentState, StateMachineHistory history, Exception e)
 {
     DiagnosticUtility.EventLog.LogEvent(TraceEventType.Critical, EventLogCategory.StateMachine, (EventLogEventId) (-1073545215), new string[] { transactionId, stateMachineName, currentState, (history == null) ? string.Empty : history.ToString(), enlistmentId.ToString(), e.ToString() });
 }