Inheritance: IServiceConfiguration
コード例 #1
0
        public static IServiceConfiguration FromArgs(string[] args)
        {
            var config = new ServiceConfiguration(args);

            if (Log.IsEnabled(LogEventLevel.Information))
            {
                Log.Information("Config build from command line args");
                Log.Information("Config Entries...");

                foreach (var entry in config.GetEntries())
                {
                    Log.Information(entry.ToString()); // TODO
                }
            }

            return config;
        }