Пример #1
0
        /// <summary>
        /// Main entry point
        /// </summary>
        /// <param name="args"></param>
        public static void Main(string[] args)
        {
            var config = new ConfigurationBuilder()
                         .SetBasePath(Directory.GetCurrentDirectory())
                         .AddJsonFile("appsettings.json", true)
                         .AddEnvironmentVariables()
                         .AddEnvironmentVariables(EnvironmentVariableTarget.User)
                         .AddLegacyPublisherCommandLine(args)
                         .Build();

            var module = new ModuleProcess(config);

            module.RunAsync().Wait();
        }