Example #1
0
        /// <summary>
        /// Process the deployment stop message described by msg
        /// </summary>
        /// <param name="msg"> The message. This cannot be null</param>
        /// <returns></returns>
        bool ProcessDeploymentStopMessage([NotNull] DeploymentStopMessage msg)
        {
            WriteLineInColor("Received DeploymentStop Message", ConsoleColor.Yellow);
            RILogManager.Default?.SendInformation("Received DeploymentStop Message");

            msg.ID = new Random().Next(6000001, 7000000);
            using (var _db = new LiteDatabase(connectionString))
            {
                Thread.Sleep(5);
                _db.Shrink();
                var collection = _db.GetCollection <DeploymentStopMessage>();
                collection.EnsureIndex(x => x.ID);
                collection.Insert(msg);
            }
            return(true);
        }
Example #2
0
 public void ProcessDeploymentStopMessage(DeploymentStopMessage msg)
 {
     Console.WriteLine("Processing Stop Messages");
     _deploymentTimer.Stop();
 }
Example #3
0
        ////////////////////////////////////////////////////////////////////////////////////////////////////
        /// <summary>   Process the deployment stop message described by msg. </summary>
        ///
        /// <param name="msg">  The message. </param>
        ////////////////////////////////////////////////////////////////////////////////////////////////////

        public void ProcessDeploymentStopMessage(DeploymentStopMessage msg)
        {
            _deploymentTimer.Stop();
        }
Example #4
0
 public void Consume([NotNull] DeploymentStopMessage message)
 {
     Console.WriteLine("Deployment completed");
     _deploymentInProgress = false;
 }