SolrNet: SolrNet.Utils.Container Class Reference

SolrNet

SolrNet.Utils.Container Class Reference

Basic built-in dependency-injection container. More...

Inheritance diagram for SolrNet.Utils.Container:

List of all members.

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:
keyComponent key
serviceTypeComponent service type
factoryComponent 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:
TService type
Parameters:
factoryComponent factory method
keyComponent 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:
TService type
Parameters:
factoryComponent 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:
keyComponent key
serviceTypeService 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:
TService type
Parameters:
keyComponent key

Implements SolrNet.Utils.IContainer.

void SolrNet.Utils.Container.Remove< T > (  )

Removes the default component for service type T

Template Parameters:
TService type

Implements SolrNet.Utils.IContainer.

void SolrNet.Utils.Container.RemoveAll< T > (  )

Removes all components with service type T

Template Parameters:
TService 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  doxygen 1.7.2