3 writes to rootInstance
System.Activities (3)
System\Activities\Runtime\ActivityExecutor.cs (3)
566
set { this.
rootInstance
= value; }
1053
this.
rootInstance
= null;
2730
this.
rootInstance
= new ActivityInstance(activity)
32 references to rootInstance
System.Activities (32)
System\Activities\Runtime\ActivityExecutor.cs (32)
344
(this.
rootInstance
!= null && !this.
rootInstance
.IsCompleted))
565
get { return this.
rootInstance
; }
769
this.
rootInstance
.FillInstanceMap(this.instanceMap);
1310
if (!this.
rootInstance
.IsCancellationRequested && !this.
rootInstance
.IsCompleted)
1312
this.
rootInstance
.IsCancellationRequested = true;
1313
this.scheduler.PushWork(new CancelActivityWorkItem(this.
rootInstance
));
1395
if (!this.
rootInstance
.IsCompleted)
1397
this.
rootInstance
.Abort(this, this.bookmarkManager, terminationException, isTerminate);
1570
if (this.
rootInstance
.State == ActivityInstanceState.Executing)
1572
if (!this.
rootInstance
.IsCancellationRequested)
1590
this.
rootInstance
.IsCancellationRequested = true;
1592
if (this.
rootInstance
.HasNotExecuted)
1594
this.scheduler.PushWork(CreateEmptyWorkItem(this.
rootInstance
));
1598
this.scheduler.PushWork(new CancelActivityWorkItem(this.
rootInstance
));
1604
AddTrackingRecord(new CancelRequestedRecord(this.WorkflowInstanceId, null, this.
rootInstance
));
1610
else if (this.
rootInstance
.State != ActivityInstanceState.Closed)
1795
if (this.
rootInstance
!= null)
1798
this.instanceMap.LoadActivityTree(workflow, this.
rootInstance
, this.executingSecondaryRootInstances, this);
2282
if (completedInstance == this.
rootInstance
)
2289
this.executionState = this.
rootInstance
.State;
2290
this.rootEnvironment = this.
rootInstance
.Environment;
2301
if (this.
rootInstance
.IsCompleted
2330
return instance.Parent == null && instance != this.
rootInstance
;
2336
Fx.Assert(ActivityUtilities.IsCompletedState(this.
rootInstance
.State), "We should only gather outputs when in a completed state.");
2340
if (this.
rootInstance
.State == ActivityInstanceState.Closed)
2424
BookmarkResumptionResult resumptionResult = this.TryResumeUserBookmark(this.mainRootCompleteBookmark, this.
rootInstance
.State, false);
2709
Fx.Assert(this.
rootInstance
== null, "ScheduleRootActivity should only be called once");
2739
bool requiresSymbolResolution = this.
rootInstance
.Initialize(null, this.instanceMap, null, this.lastInstanceId, this);
2743
TraceActivityScheduled(null, activity, this.
rootInstance
.Id);
2747
this.scheduler.PushWork(new ExecuteRootWorkItem(this.
rootInstance
, requiresSymbolResolution, argumentValueOverrides));