ContextContainer

Namespace: uMod

Assembly: uMod.Core.dll

Inheritance ObjectBaseContainer ContextContainer

Implements IContextContainer, IImplicitContainer, IExplicitContainer, IDisposable, IContainer

Summary

Generic container to provide objects and singletons

Constructors

Name

Summary

ContextContainer (Application)

Create a new instance of the ContextContainer class

Properties

Name

Summary

Mapping

Gets the context mapping

ObjectProvider

Gets the object provider

Methods

Name

Summary

Alias (String, Type)

Create an alias for the specified type

Bind (Type, Object)

Bind the specified object to the container keyed by the specified type

Bind<T> (T)

Bind the specified object to the container keyed by the object's type

Bind<T> (Type, T)

Bind the specified object to the container keyed by the specified type

Bind<T> (IEnumerable<T>)

Bind the specified objects to the container keyed by the object's type

Boot ()

Boot the container

Dispose ()

Dispose of container

GetContainers ()

Get all providers provided by the container

Register (IContextContainer)

Register a provider with the container

Resolve (Type)

"Resolve" a type, adding it to the list of known types

Resolved<T> ()

Determine if the generic type is resolved

Resolved (Type)

Determine if the specified type is resolved

Resolved (String)

Determine if the specified alias or type name is resolved

Resolved (Type, Object)

Determine if the specified type and object is resolved

Resolved (Object)

Determine if the specified object's type is resolved

TryGetType (String, out Type)

Try to get a type from the specified name

TryGetTypes (String, out IEnumerable<Type>)

Unbind (Type, Object)

Unbind the specified object from the container when keyed by the specified type

Unbind (Type)

Unbind multiple objects from the container that implement the specified type

Unbind (Object)

Unbind the specified object from the container

Unbind<T> (IEnumerable<T>)

Unbind multiple objects from the container when keyed by the generic type

Unbind<T> ()

Unbind all objects from the container that implement the generic type

Unbind<T> (T)

Unbind the specified object from the container

Unregister (IContextContainer)

Unregister the specified provider from the container

Unregister ()

Unregister all providers from the container