Interface IDependencyContainer
Syntax
public interface IDependencyContainer
Methods
Get<T>()
Declaration
T Get<T>() where T : class
Returns
Type Parameters
GetDependencies()
Declaration
IReadOnlyDictionary<Type, Func<object>> GetDependencies()
Returns
Type |
Description |
System.Collections.Generic.IReadOnlyDictionary<TKey, TValue><System.Type, System.Func<TResult><object>> |
|
Register(IDependencyContainer)
Declaration
void Register(IDependencyContainer dependencyContainer)
Parameters
Register(Type, Func<object>)
Declaration
void Register(Type type, Func<object> getObjFunc)
Parameters
Type |
Name |
Description |
System.Type |
type |
|
System.Func<TResult><object> |
getObjFunc |
|
Register<T>(Func<T>)
Declaration
void Register<T>(Func<T> obj) where T : class
Parameters
Type |
Name |
Description |
System.Func<TResult><T> |
obj |
|
Type Parameters