5 writes to Id
System.Activities (5)
System\Activities\ActivityUtilities.cs (3)
559argument.Id = nextEnvironmentId; 590variable.Id = nextEnvironmentId; 693boundArgument.Id = nextEnvironmentId;
System\Activities\DelegateArgument.cs (1)
23this.Id = -1;
System\Activities\Variable.cs (1)
29this.Id = -1;
30 references to Id
System.Activities (30)
System\Activities\ActivityInstance.cs (6)
897Fx.Assert(this.Environment.GetSpecificLocation(argument.Id) == null, "This is a newly added argument so the location should be null"); 917Location location = this.environment.GetSpecificLocation(argument.Id); 970Location location = this.environment.GetSpecificLocation(argument.Id); 1079Location variableLocation = this.Environment.GetSpecificLocation(variable.Id); 1103variableLocation = this.environment.GetSpecificLocation(variable.Id); 1237if (this.environment.TryGetLocation(argument.Id, this.Activity, out location))
System\Activities\Argument.cs (1)
119return this.runtimeArgument.Id;
System\Activities\DelegateArgument.cs (2)
132if (!context.Environment.TryGetLocation(this.Id, this.Owner, out location)) 146if (!environment.TryGetLocation(this.Id, this.Owner, out location))
System\Activities\Runtime\DelegateCompletionCallbackWrapper.cs (1)
49Location parameterLocation = environment.GetSpecificLocation(runtimeArgument.BoundArgument.Id);
System\Activities\Runtime\FuncCompletionCallbackWrapper.cs (2)
49return argument.Id; 66resultId = resultArgument.Id;
System\Activities\Runtime\LocationEnvironment.cs (9)
315Location location = GetSpecificLocation(variable.Id); 355Fx.Assert((locationReference.Id == 0 && this.locations == null) || (locationReference.Id >= 0 && this.locations != null && locationReference.Id < this.locations.Length), "The environment should have been created with the appropriate capacity."); 363Fx.Assert(locationReference.Id == 0, "We should think the id is zero if we are setting the single location."); 369Fx.Assert(this.locations[locationReference.Id] == null || this.locations[locationReference.Id] is DummyLocation, "We should not have had a location at the spot we are replacing."); 371this.locations[locationReference.Id] = location; 737RegisterLocation(GetSpecificLocation(locationReference.Id), locationReference, activityInstance);
System\Activities\Runtime\MappableObjectManager.cs (1)
101this.MappingKeyName = string.Format(CultureInfo.InvariantCulture, "activity.{0}-{1}_{2}", activity.Id, locationOwner.Id, activityInstance.Id);
System\Activities\RuntimeArgument.cs (3)
399if (!context.Environment.TryGetLocation(this.Id, out location)) 418if (!context.Environment.TryGetLocation(this.Id, this.Owner, out location)) 454if (!environment.TryGetLocation(this.Id, this.Owner, out location))
System\Activities\Tracking\ActivityStateRecord.cs (2)
239if (TrackData(variable.Name, variable.Id, currentInstance, variables, useWildCard, ref trackedVariables)) 302if (TrackData(argument.Name, argument.Id, currentInstance, arguments, containsWildcard, ref trackedArguments))
System\Activities\Variable.cs (3)
208if (!context.Environment.TryGetLocation(this.Id, out location)) 217if (!context.Environment.TryGetLocation(this.Id, this.Owner, out location)) 257if (!environment.TryGetLocation(this.Id, this.Owner, out location))