/// <summary> /// Process the deployment start message described by msg. /// </summary> /// <param name="msg">The message. This cannot be null</param> /// <returns> True if it succeeds, false if it fails</returns> bool ProcessDeploymentStartMessage([NotNull] DeploymentStartMessage msg) { WriteLineInColor("Received DeploymentStart Message", ConsoleColor.Yellow); RILogManager.Default?.SendInformation("Received DeploymentStart Message"); msg.ID = new Random().Next(5000001, 6000000); using (var _db = new LiteDatabase(connectionString)) { Thread.Sleep(5); _db.Shrink(); var collection = _db.GetCollection <DeploymentStartMessage>(); collection.EnsureIndex(x => x.ID); collection.Insert(msg); } return(true); }
//////////////////////////////////////////////////////////////////////////////////////////////////// /// <summary> Process the deployment start message described by msg. </summary> /// /// <param name="msg"> The message. </param> //////////////////////////////////////////////////////////////////////////////////////////////////// public void ProcessDeploymentStartMessage(DeploymentStartMessage msg) { _deploymentTimer.Stop(); _deploymentTimer.Start(); }
public void ProcessDeploymentStartMessage(DeploymentStartMessage msg) { Console.WriteLine("Processing Start Messages"); _deploymentTimer.Stop(); _deploymentTimer.Start(); }