/// <summary> /// Stops the operation. /// </summary> /// <param name="operationName">Name of the operation.</param> public void StopOperation(string operationName) { ISolrOperation operation = SolrOperations.FirstOrDefault(x => x.OperationModel.Name == operationName); operation?.Stop(); OnJobAction?.Invoke(null); }
/// <summary> /// Starts all operations. /// </summary> public void StartAllOperations() { foreach (ISolrOperation operation in SolrOperations.Where(x => !x.IsRunning)) { operation.Start(); } OnJobAction?.Invoke(null); }
/// <summary> /// Stops all operations. /// </summary> public void StopAllOperations() { foreach (ISolrOperation operation in SolrOperations) { operation.Stop(); } OnJobAction?.Invoke(null); }