FluentBuild.BuildUI.BuildData.AddItem C# (CSharp) Method

AddItem() public method

public AddItem ( string message, TaskState state ) : void
message string
state TaskState
return void
        public void AddItem(string message, TaskState state)
        {
            Info.Add(new Message(message, state));
            //reset the counter so the ticks don't get too long
            if (ItemCount.Count > 20)
                ItemCount.Clear();
            ItemCount.Add(message);
            InvokePropertyChanged("ItemCount");
        }

Usage Example

示例#1
0
 public ITestLogger WriteTestStarted(string testName)
 {
     _dispatcher.BeginInvoke(new Action(() => _buildData.AddItem(testName, TaskState.Normal)));
     return(new TestLogger(_dispatcher, _buildData));
 }