Container

Namespace: uMod

Assembly: uMod.Core.dll

Inheritance ObjectBaseFactory Container

Implements IFactory, IContainer, IContextContainer, IImplicitContainer, IExplicitContainer, IDisposable, IImplicitSingletonContainer, IExplicitSingletonContainer

Summary

Generic container to wrap a context container which provides objects and singletons

Constructors

Name

Summary

Container (Application)

Create a new instance of the Container class with the specified Application

Properties

Name

Summary

Added

Gets the Added event

AddedType

Gets the AddedType event

Removed

Gets the Removed event

RemovedType

Gets the RemovedType event

Methods

Name

Summary

AddConverter (Type, Type, Func<Object, Object>)

Add a converter to the container

AddConverter<T,T1> (Func<T, T1>)

Add a converter to the container

Alias (String, Type)

Alias the specified type with the specified name

Bind (Type, Object)

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

Bind (Object)

Bind the specified object to the container keyed by the object's 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 multiple objects to the container keyed by the generic type

BindSingleton (Type, Object)

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

BindSingleton (Object)

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

BindSingleton<T> (T)

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

Boot ()

Boot the container

Converts (Type, Type)

Determine if the container providers a converter from one specified type to the other specified type

Dispose ()

Dispose of the container

GetContainers ()

Get all providers provided by the container

Make<TResult> ()

Make an object that implements the generic type

Make<TResult> (String, Object[])

Make an object that implements the generic type and has the specified alias

Make<TResult> (Type, Object[])

Make an object that implements the specified type and cast it to the generic type

Make (Type, Object[])

Make an object that implements the specified type

Register (IContextContainer)

Register the specified provider with the container

Resolve (Type)

Mark the specified type as resolved

Resolve (IEnumerable<Type>)

Mark the specified types as resolved

Resolved (Type)

Determine if the specified type is resolved

Resolved (String)

Determine if the specified type name is resolved

Resolved (Type, Object)

Determine if the specified type and object is resolved

Resolved (Object)

Determine if the specified object is resolved

Resolved<T> ()

Determine if the generic type is resolved

TryGetObject (Type, out Object)

Try to get an object with the specified type

TryGetObject<T> (Type, out T)

TryGetObject<T> (out T)

TryGetObject (Type, out IEnumerable<Object>)

TryGetObjects<T> (Type, out IEnumerable<T>)

TryGetObjects<T> (out IEnumerable<T>)

TryGetSingleton (Type, out Object)

Try to get a singleton object with the specified type

TryGetSingleton<T> (Type, out T)

TryGetSingleton<T> (out T)

TryGetType (String, out Type)

Try to get a type with the specified name

TryGetTypes (String, out IEnumerable<Type>)

Unbind (Type, Object)

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

Unbind (Type)

Unbind all 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

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 with the container

Unregister ()

Unregister all providers from the container