static async Task Main(string[] args) { ConfigurationBuilder builder = new ConfigurationBuilder(); //builder.AddUserSecrets<OTHubSettings>(); builder.AddJsonFile("appsettings.json", optional: false, reloadOnChange: false); IConfigurationRoot configuration = builder.Build(); var settings = new OTHubSettings(); configuration.Bind("OTHub", settings); settings.Validate(); //Add any new tables, indexes, columns etc to the database. This can only be used to upgrade somewhat recent databases. DatabaseUpgradeTask.Execute(); await RabbitMqService.Connect(); await SmartContractManager.Load(); Bootstrapper bootstrapper = new Bootstrapper(); bootstrapper.RunUntilExit(); }