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 });
     }
 }
Ejemplo n.º 2
0
 public UnhandledStateMachineExceptionRecordSchema(string transactionId, string stateMachine, string currentState, StateMachineHistory history)
 {
     this.transactionId = transactionId;
     this.stateMachine  = stateMachine;
     this.currentState  = currentState;
     this.history       = history;
 }
 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;
 }
Ejemplo n.º 5
0
 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();
     }
 }
Ejemplo n.º 7
0
 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 });
     }
 }
Ejemplo n.º 9
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() });
 }