Exemple #1
0
        public static void Main(string[] args)
        {
            Console.Title = EdgeTitle + EdgeVersion;

            if (Directory.Exists(IIOTFilePath))
            {
                DInfo = new(IIOTFilePath);
                DInfo.Delete(true);
            }

            DInfo = new DirectoryInfo(LocalFilePath).CreateSubdirectory(YamlBase.Protagonist.IIOTFileName);

            if (args.Length == 0 || args[0] != YamlBase.Protagonist.LocalName)
            {
                return;
            }

            FoundationProvider.ReadDocument();

            PipeBuilder.BuildAsync();

            CreateHostBuilder(args).Build().Run();
        }