2 writes to host
System.Activities (2)
System\Activities\Runtime\ActivityExecutor.cs (2)
118
this.
host
= host;
1772
this.
host
= workflowInstance;
56 references to host
System.Activities (56)
System\Activities\Runtime\ActivityExecutor.cs (56)
228
return this.
host
!= null;
236
return this.
host
.HasTrackingParticipant && this.
host
.TrackingProvider.HasPendingRecords;
244
return this.
host
.HasTrackingParticipant && this.
host
.TrackingProvider.ShouldTrack;
252
return this.
host
.HasTrackingParticipant && this.
host
.TrackingProvider.ShouldTrackBookmarkResumptionRecords;
260
return this.
host
.HasTrackingParticipant && this.
host
.TrackingProvider.ShouldTrackActivityScheduledRecords;
268
return this.
host
.HasTrackingParticipant && this.
host
.TrackingProvider.ShouldTrackActivityStateRecords;
276
return this.
host
.HasTrackingParticipant && this.
host
.TrackingProvider.ShouldTrackActivityStateRecordsExecutingState;
284
return this.
host
.HasTrackingParticipant && this.
host
.TrackingProvider.ShouldTrackActivityStateRecordsClosedState;
292
return this.
host
.HasTrackingParticipant && this.
host
.TrackingProvider.ShouldTrackCancelRequestedRecords;
300
return this.
host
.HasTrackingParticipant && this.
host
.TrackingProvider.ShouldTrackFaultPropagationRecords;
312
this.symbolResolver = this.
host
.GetExtension<SymbolResolver>();
370
WorkflowInstanceId = this.
host
.Id;
373
throw FxTrace.Exception.AsError(new InvalidOperationException(SR.EmptyIdReturnedFromHost(this.
host
.GetType())));
439
return this.
host
.SupportsInstanceKeys;
633
ExceptionPersistenceExtension extension = this.
host
.GetExtension<ExceptionPersistenceExtension>();
967
this.debugController = new DebugController(this.
host
);
983
Fx.Assert(this.
host
.TrackingProvider != null, "We should only add records if we have a tracking provider.");
985
this.
host
.TrackingProvider.AddRecord(record);
990
Fx.Assert(this.
host
.TrackingProvider != null, "We should only add records if we have a tracking provider.");
991
return this.
host
.TrackingProvider.ShouldTrackActivity(name);
996
Fx.Assert(this.
host
.TrackingProvider != null, "We should only try to track if we have a tracking provider.");
997
return this.
host
.BeginFlushTrackingRecordsInternal(callback, state);
1002
Fx.Assert(this.
host
.TrackingProvider != null, "We should only try to track if we have a tracking provider.");
1003
this.
host
.EndFlushTrackingRecordsInternal(result);
1534
this.
host
.Abort(reason);
1538
this.
host
.OnRequestAbort(reason);
1778
if (this.
host
.Id != this.instanceId)
1780
throw FxTrace.Exception.AsError(new InvalidOperationException(SR.HostIdDoesNotMatchInstance(this.
host
.Id, this.instanceId)));
1783
if (this.
host
.HasTrackingParticipant)
1785
this.
host
.TrackingProvider.OnDeserialized(this.nextTrackingRecordNumber);
1786
this.
host
.OnDeserialized(this.hasTrackedStarted);
1830
extension = this.
host
.GetExtension<T>();
1992
this.
host
.OnDisassociateKeys(keysToDisassociate);
2376
this.
host
.NotifyUnhandledException(exception, source.Activity, source.Id);
2451
this.
host
.NotifyPaused();
2482
if (this.
host
.HasTrackingParticipant)
2484
this.nextTrackingRecordNumber = this.
host
.TrackingProvider.NextTrackingRecordNumber;
2485
this.hasTrackedStarted = this.
host
.HasTrackedStarted;
2642
return this.
host
.OnBeginResumeBookmark(bookmark, value, timeout, callback, state);
2647
return this.
host
.OnEndResumeBookmark(result);
3184
result = executor.
host
.OnBeginPersist(Fx.ThunkCallback(new AsyncCallback(OnPersistComplete)), executor);
3188
executor.
host
.OnEndPersist(result);
3215
executor.
host
.OnEndPersist(result);
4244
result = this.executor.
host
.OnBeginPersist(PrepareAsyncCompletion(TransactionalPersistAsyncResult.onPersistComplete), this);
4273
thisPtr.executor.
host
.OnEndPersist(result);
4463
result = this.executor.
host
.OnBeginAssociateKeys(keysToAssociate, PrepareAsyncCompletion(associatedCallback), this);
4474
thisPtr.executor.
host
.OnEndAssociateKeys(result);