Esempio n. 1
0
 /// <summary>
 /// Register IObjectPoolManagedModel type
 /// </summary>
 /// <param name="factory"></param>
 /// <returns></returns>
 /// <exception cref="ArgumentNullException"></exception>
 /// <exception cref="ArgumentException"></exception>
 public static bool Register(Func <TManagedModel> factory) => ManagedModels.Register(factory);
Esempio n. 2
0
 /// <summary>
 /// Register IObjectPoolManagedModel type
 /// </summary>
 /// <returns></returns>
 /// <exception cref="ArgumentException"></exception>
 public static bool Register() => ManagedModels.Register <TManagedModel>();