コード例 #1
0
 public Task Kill()
 {
     return(Task.Run(() =>
     {
         commandKillServer.OutputReceived += (s, e) =>
         {
             SLogger.Info(this, $"{e.Text}");
         };
         commandKillServer.ExecuteAsync();
         Thread.Sleep(MAX_TIMEOUT);
         if (commandKillServer.Status != CommandStatus.Executing && commandKillServer.Result.ExitCode == 0)
         {
             commandKillServer.Cancel();
             commandKillServer.Dispose();
             KilProcesses();
         }
     }));
 }
コード例 #2
0
 public async Task <long> ExecuteAsync <P>(P procedureParams, DbTransaction dbTransaction = null) where P : class
 {
     return(await _proxy.ExecuteAsync(procedureParams, dbTransaction));
 }