SolrNet.Utils.Container Class Reference
Basic built-in dependency-injection container. More...
Public Member Functions | |
Container (Container c) | |
Creates a new container copying all components from another container. | |
void | Register< T > (Converter< IContainer, T > factory) |
Adds a component implementing T Component key is T 's Type.FullName | |
void | Register< T > (string key, Converter< IContainer, T > factory) |
Adds a component implementing T with the specified key. | |
void | Register (string key, Type serviceType, Converter< IContainer, object > factory) |
Adds a component. | |
void | RemoveAll< T > () |
Removes all components with service type T | |
void | Remove< T > () |
Removes the default component for service type T | |
void | Remove< T > (string key) |
Removes the component with key key implementing service type T | |
void | Remove (string key, Type serviceType) |
Removes the component with key key implementing service type serviceType | |
void | Clear () |
Removes all component registrations from this container. | |
Protected Member Functions | |
override object | DoGetInstance (Type serviceType, string key) |
override IEnumerable< object > | DoGetAllInstances (Type serviceType) |
Detailed Description
Basic built-in dependency-injection container.
Constructor & Destructor Documentation
SolrNet.Utils.Container.Container | ( | Container | c ) |
Creates a new container copying all components from another container.
- Parameters:
-
c
Member Function Documentation
void SolrNet.Utils.Container.Clear | ( | ) |
Removes all component registrations from this container.
void SolrNet.Utils.Container.Register | ( | string | key, |
Type | serviceType, | ||
Converter< IContainer, object > | factory | ||
) |
Adds a component.
- Parameters:
-
key Component key serviceType Component service type factory Component factory method. Must return serviceType or a descendant
Implements SolrNet.Utils.IContainer.
void SolrNet.Utils.Container.Register< T > | ( | string | key, |
Converter< IContainer, T > | factory | ||
) |
Adds a component implementing T with the specified key.
- Template Parameters:
-
T Service type
- Parameters:
-
factory Component factory method key Component key
Implements SolrNet.Utils.IContainer.
void SolrNet.Utils.Container.Register< T > | ( | Converter< IContainer, T > | factory ) |
Adds a component implementing T Component key is T 's Type.FullName
- Template Parameters:
-
T Service type
- Parameters:
-
factory Component factory method
Implements SolrNet.Utils.IContainer.
void SolrNet.Utils.Container.Remove | ( | string | key, |
Type | serviceType | ||
) |
Removes the component with key key implementing service type serviceType
- Parameters:
-
key Component key serviceType Service type
Implements SolrNet.Utils.IContainer.
void SolrNet.Utils.Container.Remove< T > | ( | string | key ) |
Removes the component with key key implementing service type T
- Template Parameters:
-
T Service type
- Parameters:
-
key Component key
Implements SolrNet.Utils.IContainer.
void SolrNet.Utils.Container.Remove< T > | ( | ) |
Removes the default component for service type T
- Template Parameters:
-
T Service type
Implements SolrNet.Utils.IContainer.
void SolrNet.Utils.Container.RemoveAll< T > | ( | ) |
Removes all components with service type T
- Template Parameters:
-
T Service type
Implements SolrNet.Utils.IContainer.
The documentation for this class was generated from the following file:
- SolrNet/Utils/Container.cs
Generated on Sun May 3 2015 17:19:12 for SolrNet by 1.7.2