A lightweight dependency injection container for Unity Nexus. Supports singleton and transient bindings.
More...
|
|
void | BindInstance< T > (T instance) |
| | Binds a pre-existing instance as a singleton.
|
|
void | BindSingleton< T > (Func< T > factory) |
| | Binds a factory function as a singleton (created on first resolve).
|
|
void | BindTransient< T > (Func< T > factory) |
| | Binds a factory function as transient (new instance on every resolve).
|
|
T | Resolve< T > () |
| | Resolves a registered binding of type T.
|
|
bool | TryResolve< T > (out T result) |
| | Attempts to resolve a binding. Returns true if successful.
|
|
bool | HasBinding< T > () |
| | Returns true if a binding exists for type T.
|
|
void | Clear () |
| | Removes all bindings and cached singletons.
|
A lightweight dependency injection container for Unity Nexus. Supports singleton and transient bindings.
Definition at line 11 of file DependencyContainer.cs.
The documentation for this class was generated from the following file: