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);
            }
        }
示例#2
0
 public virtual void ConfigureServices(ConfigureServicesContext context)
 {
 }