Пример #1
0
 /// <summary>
 /// Starts the command operation
 /// </summary>
 public void StartOperation()
 {
     Status = CommandOperationStatus.OnOperation;
     try
     {
         if (CheckSecurity())
         {
             DoOperation();
         }
         else
         {
             Response = NetResponse.NotAllowed();
         }
     }
     catch (Exception ex)
     {
         Response = NetResponse.SystemError(ex.Message);
     }
     finally
     {
         Status = CommandOperationStatus.Finished;
     }
 }