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