Intersoft.Client.Framework.Containers Namespace : IocContainer Class |
The following tables list the members exposed by IocContainer.
Name | Description | |
---|---|---|
IocContainer Constructor | Initializes a new instance of the IocContainer class. The types IocContainer, IDependencyRegistrar, and IDependencyResolver are all registered to resolve to this instance of the class. |
Name | Description | |
---|---|---|
Current | Gets the current instance of IocContainer which can be accessed statically. | |
DefaultLifetimeManager | Gets or sets the default ILifetimeManager that will be used during registration. |
Name | Description | |
---|---|---|
CanResolve | Overloaded. Determines if the type TType can be resolved. | |
Dispose | Overloaded. Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. | |
GetRegistration | Overloaded. Returns the registration of the specified type. | |
GetRegistrations | Overloaded. Returns all registrations for the specified type. | |
GetSpecificRegistration<TType> | Returns a specific registration based on the specified type and contract name. | |
LazyResolve | Overloaded. Gets a function that resolves an unnamed instance of the type TType. This function delays the creation of types which is useful to improve performance particularly when the specified type allocates expensive resources. | |
Register | Overloaded. Adds the function to resolve an unnamed registration of the specified type to the container. | |
RegisterInstance | Overloaded. Registers an instance that will be returned whenever the IocContainer resolves the specified type. | |
Remove | Overloaded. Removes the registration from the container. | |
Resolve | Overloaded. Resolves the unnamed instance of the type TType. | |
ResolveAll | Overloaded. Gets all possible named and unnamed resolutions for the type TType. | |
UsesDefaultLifetimeManagerOf | Sets the default ILifetimeManager to the specified manager instance. |