3 writes to Activity
System.Activities (3)
System\Activities\ActivityContext.cs (3)
34
this.
Activity
= this.instance.Activity;
145
this.
Activity
= activity;
155
this.
Activity
= null;
26 references to Activity
System.Activities (26)
System\Activities\CodeActivityContext.cs (1)
36
return (THandle)this.CurrentInstance.PropertyManager.GetProperty(Handle.GetPropertyName(typeof(THandle)), this.
Activity
.MemberOf);
System\Activities\ExecutionProperties.cs (1)
33
this.currentIdSpace = this.context.
Activity
.MemberOf;
System\Activities\InlinedLocationReference.cs (5)
60
throw FxTrace.Exception.AsError(new InvalidOperationException(SR.GetLocationOnPublicAccessReference(context.
Activity
)));
70
throw FxTrace.Exception.AsError(new InvalidOperationException(SR.ReadAccessToWriteOnlyPublicReference(context.
Activity
)));
81
throw FxTrace.Exception.AsError(new InvalidOperationException(SR.WriteAccessToReadOnlyPublicReference(context.
Activity
)));
92
if (!object.ReferenceEquals(context.
Activity
, this.validAccessor))
94
throw FxTrace.Exception.AsError(new InvalidOperationException(SR.InlinedLocationReferenceOnlyAccessibleByOwner(context.
Activity
, this.validAccessor)));
System\Activities\NativeActivityContext.cs (6)
295
throw FxTrace.Exception.Argument("callback", SR.InvalidExecutionCallback(callback, this.
Activity
.ToString()));
320
throw FxTrace.Exception.Argument("callback", SR.InvalidExecutionCallback(callback, this.
Activity
.ToString()));
352
throw FxTrace.Exception.Argument("callback", SR.InvalidExecutionCallback(callback, this.
Activity
.ToString()));
528
throw FxTrace.Exception.Argument("onCompleted", SR.InvalidExecutionCallback(onCompleted, this.
Activity
.ToString()));
540
throw FxTrace.Exception.Argument("onFaulted", SR.InvalidExecutionCallback(onFaulted, this.
Activity
.ToString()));
2286
Activity associatedActivity = this.
Activity
;
System\Activities\Runtime\ActivityExecutor.cs (1)
948
Fx.Assert(resultArgument.Owner == this.cachedResolutionContext.
Activity
, "GetIgnorableResultLocation should only be called for activity in resolution context");
System\Activities\RuntimeArgument.cs (5)
387
if (!object.ReferenceEquals(this.Owner, context.
Activity
))
391
context.
Activity
.DisplayName,
397
if (object.ReferenceEquals(context.Environment.Definition, context.
Activity
))
415
Fx.Assert(object.ReferenceEquals(this.Owner, context.
Activity
) || object.ReferenceEquals(this.Owner, context.
Activity
.MemberOf.Owner),
System\Activities\Variable.cs (2)
203
if (this.IsPublic || !object.ReferenceEquals(this.Owner, context.
Activity
))
205
throw FxTrace.Exception.AsError(new InvalidOperationException(SR.VariableOnlyAccessibleAtScopeOfDeclaration(context.
Activity
, this.Owner)));
System\Activities\XamlIntegration\CompiledDataContext.cs (1)
173
throw FxTrace.Exception.AsError(new InvalidOperationException(SR.CompiledExpressionsNoCompiledRoot(activityContext.
Activity
.Id)));
System\Activities\XamlIntegration\CompiledLocation.cs (4)
45
this.forImplementation = currentActivityContext.
Activity
.MemberOf != currentActivityContext.
Activity
.RootActivity.MemberOf;
51
this.expressionActivity = currentActivityContext.
Activity
;
63
ITextExpression textExpression = currentActivityContext.
Activity
as ITextExpression;