Esempio n. 1
0
 /// <summary>
 /// Loads the given modules bindings into the underlying di container
 /// </summary>
 /// <typeparam name="T">Type of module to load</typeparam>
 public static void LoadModule <T>(this IDependencyContainer container) where T : IDependencyModule, new()
 {
     container.LoadModule(new T());
 }
Esempio n. 2
0
 public void SetupDependencies(IDependencyContainer container)
 {
     container.LoadModule <LazyDataModule>();
     container.LoadModule <PersistityModule>();
 }
Esempio n. 3
0
 public static void LoadModule <TType>(this IDependencyContainer container)
     where TType : IDependencyModule, new() =>
 container.LoadModule(new TType());