static void Main(string[] args) { var serviceProvider = new ServiceCollection() .AddSingleton <ITool, ExampeTool>() .BuildServiceProvider(); var config = new ConfigurationBuilder() .AddJsonFile("appsettings.json") .Build(); ToolsManager.Configure(serviceProvider, config); ToolsManager.Run(); }