コード例 #1
0
 private static void RegisterBase(this IRegisterableLake lake, Type target, ComponentFactory factory)
 {
     if (target is null)
     {
         throw new ArgumentNullException(nameof(target));
     }
     lake.RegisterBase(GenerateIdByType(target), factory);
 }
コード例 #2
0
 public static IRegisterableLake Register(this IRegisterableLake lake, string id, ComponentFactory factory)
 {
     lake.RegisterBase(id, factory);
     return(lake);
 }