1 write to Owner
System.Activities (1)
System\Activities\Variable.cs (1)
146
this.
Owner
= parent;
38 references to Owner
System.Activities (38)
System\Activities\Activity.cs (1)
979
return InitializeRelationship(variable.
Owner
, isPublic, RelationshipType.VariableDefault, ref validationErrors);
System\Activities\ActivityUtilities.cs (1)
595
environment.Declare(variable, variable.
Owner
, ref validationErrors);
System\Activities\DynamicUpdate\ActivityComparer.cs (4)
174
IdSpace currentIdSpace = currentVariable.IsPublic ? currentVariable.
Owner
.MemberOf : currentVariable.
Owner
.ParentOf;
175
IdSpace originalIdSpace = originalVariable.IsPublic ? originalVariable.
Owner
.MemberOf : originalVariable.
Owner
.ParentOf;
System\Activities\DynamicUpdate\DynamicUpdateMapBuilder.cs (17)
638
this.BlockUpdate(newVariable.
Owner
, UpdateBlockedReason.AddedIdleExpression, mapEntry,
643
this.BlockUpdate(newVariable.
Owner
, UpdateBlockedReason.NewHandle, mapEntry);
769
if (variables[i].
Owner
.RootActivity != this.builder.OriginalWorkflowDefinition)
935
if (newVariable.
Owner
!= source)
938
source, newVariable.Name, newVariable.
Owner
));
940
if (GetMatch(newVariable.
Owner
) != oldVariable.
Owner
)
943
newVariable.Name, oldVariable.Name, newVariable.
Owner
, oldVariable.
Owner
));
955
foreach (Variable newSibling in newVariable.
Owner
.RuntimeVariables)
964
this.newToOldMatches[newVariable] = oldVariable.
Owner
.RuntimeVariables.IndexOf(oldVariable);
1020
Activity matchingOwner = GetMatch(newVariable.
Owner
);
1060
oldIndex = newVariable.
Owner
.ImplementationVariables.IndexOf(newVariable);
1219
if (newVariable.
Owner
!= source || !newVariable.IsPublic || GetMatch(newVariable) != oldVariable)
1245
Fx.Assert(newVariable.
Owner
.MemberOf == this.updatedActivity.ParentOf, "Should only call GetMatch for variables owned by the participating activity");
1246
int index = newVariable.
Owner
.RuntimeVariables.IndexOf(newVariable);
1249
Activity matchingOwner = GetMatch(newVariable.
Owner
);
System\Activities\DynamicUpdate\DynamicUpdateMapQuery.cs (6)
115
Activity oldOwner = this.MatchNewToOld(newVariable.
Owner
, out entry);
121
int newIndex = newVariable.
Owner
.RuntimeVariables.IndexOf(newVariable);
168
Activity newOwner = this.MatchOldToNew(oldVariable.
Owner
, out entry);
174
int oldIndex = oldVariable.
Owner
.RuntimeVariables.IndexOf(oldVariable);
254
if (variable.
Owner
== null)
262
return IsInNewDefinition(variable.
Owner
, true);
System\Activities\DynamicUpdate\UpdateMapMetadata.cs (1)
101
if (updatedVariable != null && updatedVariable.
Owner
== this.TargetActivity)
System\Activities\Runtime\LocationEnvironment.cs (1)
311
Fx.Assert(variable.
Owner
== this.Definition, "We should only be targeting the vairables at this scope.");
System\Activities\Variable.cs (7)
123
return this.
Owner
!= null;
136
if (this.
Owner
!= null)
138
ValidationError validationError = new ValidationError(SR.VariableAlreadyInUseOnActivity(this.Name, parent.DisplayName, this.
Owner
.DisplayName), false, this.Name, parent);
203
if (this.IsPublic || !object.ReferenceEquals(this.
Owner
, context.Activity))
205
throw FxTrace.Exception.AsError(new InvalidOperationException(SR.VariableOnlyAccessibleAtScopeOfDeclaration(context.Activity, this.
Owner
)));
217
if (!context.Environment.TryGetLocation(this.Id, this.
Owner
, out location))
257
if (!environment.TryGetLocation(this.Id, this.
Owner
, out location))