SingletonContainer

Namespace: uModUtilities

Assembly: uMod.Core.dll

Inheritance ObjectBaseContainer SingletonContainer

Implements IContextContainer, IImplicitContainer, IExplicitContainer, IDisposable, ISingletonContainer

Summary

Container of singleton objects

Constructors

Name

Summary

SingletonContainer (Application)

Create a new instance of the SingletonContainer class

Methods

Name

Summary

Bind (Type, Object)

Bind specified object to container as singleton

Bind<T> (T)

Bind specified object to container as singleton

Bind<T> (IEnumerable<T>)

Unbind multiple objects from container

Dispose ()

Dispose of container

Resolved (Type)

Determine if specified type is resolved within container

Resolved (String)

Determine if specified type name or alias is resolved within container

Resolved (Object)

Determine if specified object type is resolved within container

Resolved<T> ()

Determine if generic type is resolved within container

Resolved (Type, Object)

Determine if specified type is resolved within container

TryGetObject (Type, out Object)

Try to get singleton object of specified type from container

TryGetObject<T> (Type, out T)

TryGetObject<T> (out T)

Unbind (Type, Object)

Unbind specified object from container

Unbind (Type)

Unbind all objects of specified type from container

Unbind (Object)

Unbind specified object from container

Unbind<T> ()

Unbind all objects of generic type from container

Unbind<T> (T)

Unbind specified object from container

Unbind<T> (IEnumerable<T>)

Unbind multiple objects from container