示例#1
0
        private static void Main(string[] args)
        {
            string fname          = null;
            bool   showProcessing = false;
            bool   generateMatrix = false;
            int    tThreads       = -1;
            long   tSeeds         = -1L;
            string seedType       = null;

            try
            {
                Console.Title = string.Concat(new string[]
                {
                    "SF.Expand.Secure.GenerateTokens [ init:",
                    DateTime.Now.ToShortDateString(),
                    " ",
                    DateTime.Now.ToLongTimeString(),
                    "]"
                });
                if (ParseCommandLine.Execute(args, out seedType, out fname, out tThreads, out tSeeds, out showProcessing, out generateMatrix))
                {
                    GenerateSeeds.Generate(seedType, fname, tThreads, tSeeds, showProcessing, generateMatrix);
                }
                Console.ReadKey();
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }
        }
示例#2
0
        static void Main(string[] args)
        {
            string sName          = null;
            bool   showsResults   = false;
            bool   generateMatrix = false;
            int    iThreads       = -1;
            long   lTotalSeeds    = -1;
            string sSeedType      = null;

            try
            {
                Console.Title = "SF.Expand.Secure.GenerateTokens [ init:" + DateTime.Now.ToShortDateString() + " " + DateTime.Now.ToLongTimeString() + "]";
                if (ParseCommandLine.Execute(args, out sSeedType, out sName, out iThreads, out lTotalSeeds, out showsResults, out generateMatrix))
                {
                    GenerateSeeds.Generate(sSeedType, sName, iThreads, lTotalSeeds, showsResults, generateMatrix);
                }
                Console.ReadKey();
                return;
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }
        }