public void ConfigureServices(IServiceCollection services) { SuktIocManage.Instance.SetServiceCollection(services); var context = new ConfigureServicesContext(services); services.AddSingleton(context); foreach (var contextcfg in Modules) { services.AddSingleton(contextcfg); contextcfg.ConfigureServices(context); } }
public virtual void ConfigureServices(ConfigureServicesContext context) { }