コード例 #1
0
        /// <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);
        }
コード例 #2
0
        ////////////////////////////////////////////////////////////////////////////////////////////////////
        /// <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();
        }
コード例 #3
0
 public void ProcessDeploymentStartMessage(DeploymentStartMessage msg)
 {
     Console.WriteLine("Processing Start Messages");
     _deploymentTimer.Stop();
     _deploymentTimer.Start();
 }