コード例 #1
0
ファイル: TinyExtensions.cs プロジェクト: bondeluke/TinyIoC
 public static ITinyRegistry RegisterModule(this ITinyRegistry registry, ITinyModule module)
 {
     module.RegisterServices(registry);
     return(registry);
 }
コード例 #2
0
ファイル: TinyModuleTests.cs プロジェクト: bondeluke/TinyIoC
 public void RegisterServices(ITinyRegistry registry)
 {
     registry.Register <Simple>();
 }
コード例 #3
0
ファイル: TinyExtensions.cs プロジェクト: bondeluke/TinyIoC
 public static ITinyRegistry RegisterModule <T>(this ITinyRegistry registry) where T : ITinyModule, new() => registry.RegisterModule(new T());