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 UnhandledStateMachineExceptionRecordSchema(string transactionId, string stateMachine, string currentState, StateMachineHistory history) { this.transactionId = transactionId; this.stateMachine = stateMachine; this.currentState = currentState; this.history = history; }
public UnexpectedStateMachineEventRecordSchema(string transactionId, string stateMachine, string currentState, StateMachineHistory history, string unexpectedEvent, string unexpectedEventDetails) { this.transactionId = transactionId; this.stateMachine = stateMachine; this.currentState = currentState; this.history = history; this.unexpectedEvent = unexpectedEvent; this.unexpectedEventDetails = unexpectedEventDetails; }
protected StateMachine(TransactionEnlistment enlistment) { this.enlistment = enlistment; this.state = enlistment.State; this.synchronization = new SynchronizationManager(this); if (DebugTrace.Warning || DiagnosticUtility.ShouldTraceWarning) { this.history = new StateMachineHistory(); } }
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 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() }); }