/// <summary> /// Настроить сервисы. /// </summary> /// <param name="services">Сервисы.</param> public void ConfigureServices(IServiceCollection services) { var configurator = CreateConfigurator(); Modules = CreateModules(configurator.CreateCommonModuleList()); Modules?.InitConfig(Environment); Modules?.ConfigureServices(services); InitConfigurator(configurator); configurator.ConfigureServices(services); }