2 writes to InstanceId
System.Workflow.Runtime (2)
WorkflowExecutor.cs (2)
143
this.
InstanceId
= instanceId;
305
this.
InstanceId
= (Guid)rootActivity.GetValue(WorkflowInstanceIdProperty);
67 references to InstanceId
System.Workflow.Runtime (67)
Tracking.cs (4)
125
found = _listeners.TryGetValue(exec.
InstanceId
, out weakref);
314
TrackingListener listener = GetListenerFromWRCache(exec.
InstanceId
);
315
listener.ReloadProfiles(exec, exec.
InstanceId
);
440
List<TrackingChannelWrapper> channels = GetChannels(sked, skedExec, skedExec.
InstanceId
, sked.GetType(), ref broker);
WorkflowExecutor.cs (48)
184
trackingCallingState.CallerWorkflowInstanceId = invokerExec.
InstanceId
;
196
this._schedulerLock = LockFactory.CreateWorkflowSchedulerLock(this.
InstanceId
);
202
TimerQueue = new TimerEventSubscriptionCollection(this, this.
InstanceId
);
310
this._schedulerLock = LockFactory.CreateWorkflowSchedulerLock(this.
InstanceId
);
517
workflowIdString = this.
InstanceId
.ToString();
565
throw new InvalidOperationException(String.Format(CultureInfo.CurrentCulture, ExecutionStringManager.CannotStartInstanceTwice, this.
InstanceId
));
658
WorkflowRuntime.SchedulerService.Schedule(this.RunSome, this.
InstanceId
);
714
using (new WorkflowTraceTransfer(this.
InstanceId
))
916
get { return
InstanceId
; }
1055
completedContextActivity.SetValue(WorkflowInstanceIdProperty, this.
InstanceId
);
1225
if (!ServiceEnvironment.IsInServiceThread(
InstanceId
))
1236
if (lockedScheduler || ServiceEnvironment.IsInServiceThread(
InstanceId
))
1446
string errMsg = String.Format(CultureInfo.CurrentCulture, ExecutionStringManager.MissingPersistenceService, this.
InstanceId
);
1527
WorkflowTrace.Runtime.TraceEvent(TraceEventType.Information, 0,
InstanceId
+ ": Calling PerformUnloading(false): InstanceId {0}, hc: {1}", InstanceIdString, this.GetHashCode());
1529
WorkflowTrace.Runtime.TraceEvent(TraceEventType.Information, 0,
InstanceId
+ ": Returning from ProtectedPersist: InstanceId {0}, hc: {1}, ret={2}", InstanceIdString, this.GetHashCode(), persisted);
1533
WorkflowTrace.Runtime.TraceEvent(TraceEventType.Information, 0,
InstanceId
+ ": Calling Persist");
1536
WorkflowTrace.Runtime.TraceEvent(TraceEventType.Information, 0,
InstanceId
+ ": Returning from Persist: InstanceId {0}, hc: {1}, IsInstanceValid={2}", InstanceIdString, this.GetHashCode(), IsInstanceValid);
1566
string errMsg = String.Format(CultureInfo.CurrentCulture, ExecutionStringManager.MissingPersistenceService, this.
InstanceId
);
1589
WorkflowTrace.Runtime.TraceEvent(TraceEventType.Information, 0,
InstanceId
+ ": Calling PerformUnloading(false) on instance {0} hc {1}", InstanceIdString, this.GetHashCode());
1592
WorkflowTrace.Runtime.TraceEvent(TraceEventType.Information, 0,
InstanceId
+ ": Returning from PerformUnloading(false): IsInstanceValue: " + IsInstanceValid);
2818
if (!ServiceEnvironment.IsInServiceThread(this.
InstanceId
))
2833
if (!ServiceEnvironment.IsInServiceThread(this.
InstanceId
))
2848
if (!ServiceEnvironment.IsInServiceThread(this.
InstanceId
))
2857
if (!ServiceEnvironment.IsInServiceThread(this.
InstanceId
))
2868
if (!ServiceEnvironment.IsInServiceThread(this.
InstanceId
))
2871
return this.
InstanceId
;
2876
if (!ServiceEnvironment.IsInServiceThread(this.
InstanceId
))
2882
if (!ServiceEnvironment.IsInServiceThread(this.
InstanceId
))
2890
if (!ServiceEnvironment.IsInServiceThread(this.
InstanceId
))
2896
if (!ServiceEnvironment.IsInServiceThread(this.
InstanceId
))
2902
if (!ServiceEnvironment.IsInServiceThread(this.
InstanceId
))
2908
if (!ServiceEnvironment.IsInServiceThread(this.
InstanceId
))
2914
if (!ServiceEnvironment.IsInServiceThread(this.
InstanceId
))
2927
if (!ServiceEnvironment.IsInServiceThread(this.
InstanceId
))
2933
if (!ServiceEnvironment.IsInServiceThread(this.
InstanceId
))
2939
if (!ServiceEnvironment.IsInServiceThread(this.
InstanceId
))
2951
if (!ServiceEnvironment.IsInServiceThread(this.
InstanceId
))
2957
if (!ServiceEnvironment.IsInServiceThread(this.
InstanceId
))
2963
if (!ServiceEnvironment.IsInServiceThread(this.
InstanceId
))
2969
if (!ServiceEnvironment.IsInServiceThread(this.
InstanceId
))
2978
string errMsg = String.Format(CultureInfo.CurrentCulture, ExecutionStringManager.MissingPersistenceService, this.
InstanceId
);
3013
if (!ServiceEnvironment.IsInServiceThread(this.
InstanceId
))
3039
if (!ServiceEnvironment.IsInServiceThread(this.
InstanceId
))
3063
if (!ServiceEnvironment.IsInServiceThread(this.
InstanceId
))
3076
if (!ServiceEnvironment.IsInServiceThread(this.
InstanceId
))
3103
if (!ServiceEnvironment.IsInServiceThread(this.
InstanceId
))
3109
if (!ServiceEnvironment.IsInServiceThread(this.
InstanceId
))
3115
if (!ServiceEnvironment.IsInServiceThread(this.
InstanceId
))
WorkflowRuntime.cs (13)
637
WorkflowTrace.Host.TraceEvent(TraceEventType.Information, 0, "Received OnIdle Event for instance, {0}", executor.
InstanceId
);
647
WorkflowTrace.Host.TraceEvent(TraceEventType.Warning, 0, "OnIdle Event for instance, {0} threw an exception", executor.
InstanceId
);
654
TryRemoveWorkflowExecutor(executor.
InstanceId
, executor);
655
WorkflowTrace.Host.TraceEvent(TraceEventType.Information, 0, "WorkflowRuntime::_removeInstance, instance:{0}, hc:{1}", executor.
InstanceId
, executor.GetHashCode());
691
WorkflowTrace.Host.TraceEvent(TraceEventType.Information, 0, "WorkflowRuntime:ScheduleCompleted event raised for instance Id {0}", schedule.
InstanceId
);
712
WorkflowTrace.Host.TraceEvent(TraceEventType.Information, 0, "WorkflowRuntime:ScheduleSuspension event raised for instance Id {0}", schedule.
InstanceId
);
727
WorkflowTrace.Host.TraceEvent(TraceEventType.Information, 0, "WorkflowRuntime:ScheduleTermination event raised for instance Id {0}", schedule.
InstanceId
);
746
WorkflowTrace.Host.TraceEvent(TraceEventType.Information, 0, "WorkflowRuntime:ScheduleLoaded event raised for instance Id {0}", schedule.
InstanceId
);
753
WorkflowTrace.Host.TraceEvent(TraceEventType.Information, 0, "WorkflowRuntime:ScheduleAborted event raised for instance Id {0}", schedule.
InstanceId
);
759
WorkflowTrace.Host.TraceEvent(TraceEventType.Information, 0, "WorkflowRuntime:ScheduleUnloaded event raised for instance Id {0}", schedule.
InstanceId
);
766
WorkflowTrace.Host.TraceEvent(TraceEventType.Information, 0, "WorkflowRuntime:ScheduleResumed event raised for instance Id {0}", schedule.
InstanceId
);
772
WorkflowTrace.Host.TraceEvent(TraceEventType.Information, 0, "WorkflowRuntime:ScheduleDynamicallyChanged event raised for instance Id {0}", schedule.
InstanceId
);
778
WorkflowTrace.Host.TraceEvent(TraceEventType.Information, 0, "WorkflowRuntime:SchedulePersisted event raised for instance Id {0}", schedule.
InstanceId
);
WorkflowStateRollbackService.cs (2)
45
Debug.Assert(this.workflowExecutor.
InstanceId
!= null, "instance id null at checkpoint time");
132
this.workflowExecutor.WorkflowRuntime.ReplaceWorkflowExecutor(this.workflowExecutor.
InstanceId
, this.workflowExecutor, newWorkflowExecutor);