Example #1
0
        public void OnNewResultsAvailable(object sender, LogMvtResultsTask e)
        {
            var para = e ?? throw new ArgumentNullException(nameof(LogResultsTaskController));

            _logMvtResultsTask = e;
            this.Execute();
        }
Example #2
0
 public LogMvtResultsTask this[LogMvtResultsTask task]
 {
     get
     {
         return((LogMvtResultsTask)BaseGet((object)task.Id));
     }
     set
     {
         int index = BaseIndexOf(task);
         if (index != -1)
         {
             BaseRemoveAt(index);
             BaseAdd(index, value);
         }
         else
         {
             BaseAdd(value);
         }
     }
 }
 public bool IsNotifiedMailSubjectExists(LogMvtResultsTask task)
 {
     //if tasks contains current task(which id is already in task collection), regards as a update.
     return(TaskCollection.OfType <LogMvtResultsTask>().Where(p => p.Id != task.Id).Any(p => p.NotifiedMailSubject == task.NotifiedMailSubject));
 }
 public bool IsTaskNameExists(LogMvtResultsTask task)
 {
     return(TaskCollection.OfType <LogMvtResultsTask>().Where(p => p.Id != task.Id).Any(p => p.TaskName == task.TaskName));
 }
Example #5
0
 public VstsSuite(LogMvtResultsTask task)
     : this(task.OrganizationUri, task.ProjectName, task.PlanId, task.SuiteId, task.PersonalAccessToken)
 {
 }
Example #6
0
 public bool IsNotifiedMailSubjectExists(LogMvtResultsTask task)
 {
     return(Section.IsNotifiedMailSubjectExists(task));
 }
Example #7
0
 public void Remove(LogMvtResultsTask logMvtResultsTask)
 {
     Section.TaskCollection.Remove(logMvtResultsTask);
     Configuration.Save(ConfigurationSaveMode.Modified);
 }
Example #8
0
 public void AddOrUpdate(LogMvtResultsTask logMvtResultsTask)
 {
     Section.TaskCollection.AddOrUpdate(logMvtResultsTask);
     Configuration.Save(ConfigurationSaveMode.Modified);
 }
Example #9
0
 public void Remove(LogMvtResultsTask task)
 {
     this.BaseRemove(task.Id);
 }
Example #10
0
 public void AddOrUpdate(LogMvtResultsTask task)
 {
     this.BaseAdd(task);
 }