public void Add(IExecutableService service) { ClearNullExecutions(); var parent = GetParent(service.WorkspaceID, service.ParentID); if(parent == null) { _activeExecutions.Add(service); } else { parent.AssociatedServices.Add(service); } }
public void Add(IExecutableService service) { ClearNullExecutions(); var parent = GetParent(service.WorkspaceID, service.ParentID); if (parent == null) { _activeExecutions.Add(service); } else { parent.AssociatedServices.Add(service); } }
public bool Remove(IExecutableService service) { var exists = _activeExecutions.Remove(service); foreach (var executableService in _activeExecutions) { exists = executableService.AssociatedServices.Remove(service); if (exists) { return(true); } } return(exists); }
public bool Remove(IExecutableService service) { var exists = _activeExecutions.Remove(service); foreach(var executableService in _activeExecutions) { exists = executableService.AssociatedServices.Remove(service); if(exists) { return true; } } return exists; }
public ScheduleService(IExecutableService subService) { this.subService = subService; }