示例#1
0
 /// <summary>
 /// Register a module (like a category) of services
 /// </summary>
 /// <param name="services"></param>
 /// <param name="module"></param>
 public static void RegisterModule(this IServiceCollection services, ShinyModule module)
 {
     module.Register(services);
     StartupModule.AddModule(module);
 }
示例#2
0
 /// <summary>
 /// Register a module (like a category) of services
 /// </summary>
 /// <param name="services"></param>
 /// <param name="module"></param>
 public static void RegisterModule(this IServiceCollection services, ShinyModule module)
 {
     module.Register(services);
     services.RegisterPostBuildAction(module.OnContainerReady);
 }