public void OnNewResultsAvailable(object sender, LogMvtResultsTask e) { var para = e ?? throw new ArgumentNullException(nameof(LogResultsTaskController)); _logMvtResultsTask = e; this.Execute(); }
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)); }
public VstsSuite(LogMvtResultsTask task) : this(task.OrganizationUri, task.ProjectName, task.PlanId, task.SuiteId, task.PersonalAccessToken) { }
public bool IsNotifiedMailSubjectExists(LogMvtResultsTask task) { return(Section.IsNotifiedMailSubjectExists(task)); }
public void Remove(LogMvtResultsTask logMvtResultsTask) { Section.TaskCollection.Remove(logMvtResultsTask); Configuration.Save(ConfigurationSaveMode.Modified); }
public void AddOrUpdate(LogMvtResultsTask logMvtResultsTask) { Section.TaskCollection.AddOrUpdate(logMvtResultsTask); Configuration.Save(ConfigurationSaveMode.Modified); }
public void Remove(LogMvtResultsTask task) { this.BaseRemove(task.Id); }
public void AddOrUpdate(LogMvtResultsTask task) { this.BaseAdd(task); }