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(); } })); }
public async Task <long> ExecuteAsync <P>(P procedureParams, DbTransaction dbTransaction = null) where P : class { return(await _proxy.ExecuteAsync(procedureParams, dbTransaction)); }