Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            TraceFactory.AddTraceConsole();
            SplitArgs Args = new SplitArgs(args);

            string SourceDir = Args.GetValue("sourcedir", "");

            Trace.WriteLine($"Source directory = {SourceDir}");

            if (string.IsNullOrWhiteSpace(SourceDir) || !Directory.Exists(SourceDir))
            {
                Usage($"Missing source directory : directory is missing or access is denied");
            }

            InitTitle($"Processing {SourceDir}");

            EProcessStatus ProcessStatus = ProcessDirectory(new DirectoryInfo(SourceDir));

            if (ProcessStatus != EProcessStatus.Ok)
            {
                ConsoleExtension.Pause();
                Environment.Exit(1);
            }

            //ConsoleExtension.Pause();
            Environment.Exit(0);
        }
Ejemplo n.º 2
0
 static void Main(string[] args)
 {
     Console.WriteLine("Starting BDIndex");
     TraceFactory.AddTraceConsole();
     Task.Run(async() => { await MainAsync(args); }).Wait();
 }