Class DependencyContainer
Inheritance
object
DependencyContainer
Implements
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: InsaneScatterbrain.Dependencies
Syntax
public class DependencyContainer : IDependencyContainer
Methods
Clear()
Declaration
public virtual void Clear()
Get<T>()
Declaration
public T Get<T>() where T : class
Returns
Type | Description |
---|---|
T |
Type Parameters
Name | Description |
---|---|
T |
GetDependencies()
Declaration
public IReadOnlyDictionary<Type, Func<object>> GetDependencies()
Returns
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyDictionary<TKey, TValue><System.Type, System.Func<TResult><object>> |
Register(IDependencyContainer)
Declaration
public void Register(IDependencyContainer dependencyContainer)
Parameters
Type | Name | Description |
---|---|---|
IDependencyContainer | dependencyContainer |
Register(Type, Func<object>)
Declaration
public void Register(Type type, Func<object> getObjFunc)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type | |
System.Func<TResult><object> | getObjFunc |
Register<T>(Func<T>)
Declaration
public void Register<T>(Func<T> getObjFunc) where T : class
Parameters
Type | Name | Description |
---|---|---|
System.Func<TResult><T> | getObjFunc |
Type Parameters
Name | Description |
---|---|
T |