Exemple #1
0
 public static ITinyRegistry RegisterModule(this ITinyRegistry registry, ITinyModule module)
 {
     module.RegisterServices(registry);
     return(registry);
 }
Exemple #2
0
 public void RegisterServices(ITinyRegistry registry)
 {
     registry.Register <Simple>();
 }
Exemple #3
0
 public static ITinyRegistry RegisterModule <T>(this ITinyRegistry registry) where T : ITinyModule, new() => registry.RegisterModule(new T());