25 instantiations of ServiceEnvironment
System.Workflow.Runtime (25)
Scheduler.cs (1)
141using (new ServiceEnvironment(itemActivity))
System\Activities\Statements\Interop.cs (1)
383using (new ServiceEnvironment(activityInstance))
System\Activities\Statements\InteropExecutor.cs (2)
235this.serviceEnvironment = new ServiceEnvironment(this.RootActivity); 348using (new ServiceEnvironment(this.rootActivity))
Tracking.cs (1)
300using (new ServiceEnvironment(exec.RootActivity))
WorkflowExecutor.cs (19)
205using (new ServiceEnvironment(this.rootActivity)) 218using (new ServiceEnvironment(this.rootActivity)) 250using (new ServiceEnvironment(this.rootActivity)) 318using (new ServiceEnvironment(this.rootActivity)) 572using (new ServiceEnvironment(this.rootActivity)) 671using (new ServiceEnvironment(this.rootActivity)) 718using (new ServiceEnvironment(this.rootActivity)) 1007using (new ServiceEnvironment(currentActivity)) 1238using (new ServiceEnvironment(this.RootActivity)) 1283using (new ServiceEnvironment(this.rootActivity)) 1332using (new ServiceEnvironment(this.rootActivity)) 1465using (new ServiceEnvironment(this.rootActivity)) 1578using (new ServiceEnvironment(this.rootActivity)) 1639using (new ServiceEnvironment(this.rootActivity)) 1775using (new ServiceEnvironment(this.rootActivity)) 1892using (new ServiceEnvironment(this.rootActivity)) 2006using (new ServiceEnvironment(this.rootActivity)) 2583using (new ServiceEnvironment(currentActivity)) 2684using (new ServiceEnvironment(this.rootActivity))
WorkflowStateRollbackService.cs (1)
102using (new ServiceEnvironment(activity))
35 references to ServiceEnvironment
System.Workflow.Runtime (35)
AmbientEnvironment.cs (3)
118Activity currentActivity = ServiceEnvironment.CurrentActivity; 130Activity currentActivity = ServiceEnvironment.CurrentActivity; 142Activity currentActivity = ServiceEnvironment.CurrentActivity;
System\Activities\Statements\InteropExecutor.cs (1)
55ServiceEnvironment serviceEnvironment;
WorkflowEnvironment.cs (2)
18IWorkBatch currentBatch = ServiceEnvironment.WorkBatch; 34Guid currentInstanceId = ServiceEnvironment.WorkflowInstanceId;
WorkflowExecutor.cs (29)
1225if (!ServiceEnvironment.IsInServiceThread(InstanceId)) 1236if (lockedScheduler || ServiceEnvironment.IsInServiceThread(InstanceId)) 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)) 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)) 3013if (!ServiceEnvironment.IsInServiceThread(this.InstanceId)) 3039if (!ServiceEnvironment.IsInServiceThread(this.InstanceId)) 3063if (!ServiceEnvironment.IsInServiceThread(this.InstanceId)) 3076if (!ServiceEnvironment.IsInServiceThread(this.InstanceId)) 3087WorkflowQueuingService queuingService = ServiceEnvironment.QueuingService; 3103if (!ServiceEnvironment.IsInServiceThread(this.InstanceId)) 3109if (!ServiceEnvironment.IsInServiceThread(this.InstanceId)) 3115if (!ServiceEnvironment.IsInServiceThread(this.InstanceId))