/// <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()); }
public void SetupDependencies(IDependencyContainer container) { container.LoadModule <LazyDataModule>(); container.LoadModule <PersistityModule>(); }
public static void LoadModule <TType>(this IDependencyContainer container) where TType : IDependencyModule, new() => container.LoadModule(new TType());