Class DependencyContainer
Inheritance
DependencyContainer
Syntax
public class DependencyContainer : IDependencyContainer
Methods
Clear()
Declaration
public virtual void Clear()
GetDependencies()
Declaration
public IReadOnlyDictionary<Type, Func<object>> GetDependencies()
Returns
Get<T>()
Declaration
public T Get<T>() where T : class
Returns
Type Parameters
Register(IDependencyContainer)
Declaration
public void Register(IDependencyContainer dependencyContainer)
Parameters
Register(Type, Func<object>)
Declaration
public void Register(Type type, Func<object> getObjFunc)
Parameters
Register<T>(Func<T>)
Declaration
public void Register<T>(Func<T> getObjFunc) where T : class
Parameters
Type |
Name |
Description |
Func<T> |
getObjFunc |
|
Type Parameters
Implements