internal void SetInitializedSubstate(ActivityExecutor executor) { this.substate = Substate.Initialized; if (executor.ShouldTrackActivityStateRecordsExecutingState && executor.ShouldTrackActivity(this.Activity.DisplayName)) { executor.AddTrackingRecord(new ActivityStateRecord(executor.WorkflowInstanceId, this, this.state)); } if ((this.Activity.RuntimeArguments.Count > 0) && TD.InArgumentBoundIsEnabled()) { for (int i = 0; i < this.Activity.RuntimeArguments.Count; i++) { Location location; RuntimeArgument argument = this.Activity.RuntimeArguments[i]; if (ArgumentDirectionHelper.IsIn(argument.Direction) && this.environment.TryGetLocation(argument.Id, this.Activity, out location)) { string str = null; if (location.Value == null) { str = "<Null>"; } else { str = "'" + location.Value.ToString() + "'"; } TD.InArgumentBound(argument.Name, this.Activity.GetType().ToString(), this.Activity.DisplayName, this.Id, str); } } } }
public static bool IsIn(Argument?argument) => ArgumentDirectionHelper.IsIn(argument?.Direction);
public static bool IsIn(Argument argument) { return(ArgumentDirectionHelper.IsIn(argument.Direction)); }