public void LogConsoleInfo_TestOk(string message) { try { loggerConsole.LogInfo(message); Assert.IsTrue(true); } catch (Exception ex) { Assert.IsTrue(false, ex.ToString()); } }
public virtual async Task Start() { waitFinished = false; cts = new CancellationTokenSource(); StartTime = DateTime.Now; Status = JobStatus.Waiting; try { logger?.LogInfo(Id, "Waiting for the start condition to be verified..."); await StartCondition.WaitUntilVerified(this, cts.Token); logger?.LogInfo(Id, "Finished waiting"); } catch (TaskCanceledException) { // The token has been cancelled, skip the wait logger?.LogInfo(Id, "The wait has been manually skipped"); } waitFinished = true; }