//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------ namespace System.Activities.Tracking { using System.Collections.ObjectModel; public class ActivityStateQuery : TrackingQuery { Collection arguments; Collection states; Collection variables; public ActivityStateQuery() { this.ActivityName = "*"; } public string ActivityName { get; set; } public Collection Arguments { get { if (this.arguments == null) { this.arguments = new Collection(); } return this.arguments; } } public Collection Variables { get { if (this.variables == null) { this.variables = new Collection(); } return this.variables; } } public Collection States { get { if (this.states == null) { this.states = new Collection(); } return this.states; } } internal bool HasStates { get { return this.states != null && this.states.Count > 0; } } internal bool HasArguments { get { return this.arguments != null && this.arguments.Count > 0; } } internal bool HasVariables { get { return this.variables != null && this.variables.Count > 0; } } } }