public void Configure(IApplicationBuilder app, IConfiguration configuration, IWebHostEnvironment hostEnvironment)
        {
            var context = new ConfigureServicesContext(configuration, hostEnvironment, _options);

            foreach (var cfg in _options.StartupModules)
            {
                cfg.Configure(app, context);
            }
        }
        public void ConfigureServices(IServiceCollection services, IConfiguration configuration, IWebHostEnvironment hostEnvironment)
        {
            var context = new ConfigureServicesContext(configuration, hostEnvironment, _options);

            foreach (var cfg in _options.StartupModules)
            {
                cfg.ConfigureServices(services, context);
            }
        }