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); }
public static IRegisterableLake Register(this IRegisterableLake lake, string id, ComponentFactory factory) { lake.RegisterBase(id, factory); return(lake); }