コード例 #1
0
        /// <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);
        }
コード例 #2
0
 /// <summary>
 /// Starts all operations.
 /// </summary>
 public void StartAllOperations()
 {
     foreach (ISolrOperation operation in SolrOperations.Where(x => !x.IsRunning))
     {
         operation.Start();
     }
     OnJobAction?.Invoke(null);
 }
コード例 #3
0
 /// <summary>
 /// Stops all operations.
 /// </summary>
 public void StopAllOperations()
 {
     foreach (ISolrOperation operation in SolrOperations)
     {
         operation.Stop();
     }
     OnJobAction?.Invoke(null);
 }