コード例 #1
0
        }         // END - IncrementSortedSet

        #endregion

        #region IncrementData (Loop Wrapper class IncrementSortedSet)
        public static void IncrementData(string host, int port, string password, int count, int sleepT)
        {
            if (count < 1)
            {
                while (!(Console.KeyAvailable && Console.ReadKey(true).Key == ConsoleKey.Escape))
                {
                    Console.WriteLine($"Update in Continious Loop");
                    Common.DashLine();
                    PopulateData.IncrementSortedSet(host, port, password);
                    Console.WriteLine($"* Sleeping .........: [ {sleepT / 1000} ] sec");
                    Common.DashLine();
                    Console.WriteLine($"Time Stamp - {DateTime.Now}");
                    Console.WriteLine("Press ESC Key to Exit Loop\n");
                    Thread.Sleep(sleepT);
                }
            }
            else
            {
                Console.WriteLine($"One-Time Update");
                Common.DashLine();
                PopulateData.IncrementSortedSet(host, port, password);
                Console.WriteLine($"* Sleeping .........: [ {sleepT / 1000} ] sec");
                Common.DashLine();
                Console.WriteLine($"Time Stamp - {DateTime.Now}");
            } // END - If - While - Else Loop
        }     // END - IncrementData
コード例 #2
0
        }     // END - IncrementData

        #endregion

        #region AddInitialData

        public static void AddInitalData(string host, int port, string password)
        {
            Console.WriteLine($"Adding Seed Data");
            Common.DashLine();
            PopulateData.AddItemsToSet(host, port, password);
            Common.DashLine();
            Console.WriteLine($"Time Stamp - {DateTime.Now}");
        } // END - AddInitalData