Ejemplo n.º 1
0
        public void OnNewResultsAvailable(object sender, LogMvtResultsTask e)
        {
            var para = e ?? throw new ArgumentNullException(nameof(LogResultsTaskController));

            _logMvtResultsTask = e;
            this.Execute();
        }
Ejemplo n.º 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));
 }
Ejemplo n.º 5
0
 public VstsSuite(LogMvtResultsTask task)
     : this(task.OrganizationUri, task.ProjectName, task.PlanId, task.SuiteId, task.PersonalAccessToken)
 {
 }
Ejemplo n.º 6
0
 public bool IsNotifiedMailSubjectExists(LogMvtResultsTask task)
 {
     return(Section.IsNotifiedMailSubjectExists(task));
 }
Ejemplo n.º 7
0
 public void Remove(LogMvtResultsTask logMvtResultsTask)
 {
     Section.TaskCollection.Remove(logMvtResultsTask);
     Configuration.Save(ConfigurationSaveMode.Modified);
 }
Ejemplo n.º 8
0
 public void AddOrUpdate(LogMvtResultsTask logMvtResultsTask)
 {
     Section.TaskCollection.AddOrUpdate(logMvtResultsTask);
     Configuration.Save(ConfigurationSaveMode.Modified);
 }
Ejemplo n.º 9
0
 public void Remove(LogMvtResultsTask task)
 {
     this.BaseRemove(task.Id);
 }
Ejemplo n.º 10
0
 public void AddOrUpdate(LogMvtResultsTask task)
 {
     this.BaseAdd(task);
 }