SolrNet: SolrNet.Utils.IContainer Interface Reference

SolrNet

SolrNet.Utils.IContainer Interface Reference

Interface for the built-in DI container. More...

Inheritance diagram for SolrNet.Utils.IContainer:

List of all members.

Public Member Functions

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

Detailed Description

Interface for the built-in DI container.


Member Function Documentation

void SolrNet.Utils.IContainer.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

Implemented in SolrNet.Utils.Container.

void SolrNet.Utils.IContainer.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

Implemented in SolrNet.Utils.Container.

void SolrNet.Utils.IContainer.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

Implemented in SolrNet.Utils.Container.

void SolrNet.Utils.IContainer.Remove ( string  key,
Type  serviceType 
)

Removes the component with key key implementing service type serviceType

Parameters:
keyComponent key
serviceTypeService type

Implemented in SolrNet.Utils.Container.

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

Removes the default component for service type T

Template Parameters:
TService type

Implemented in SolrNet.Utils.Container.

void SolrNet.Utils.IContainer.Remove< T > ( string  key )

Removes the component with key key implementing service type T

Template Parameters:
TService type
Parameters:
keyComponent key

Implemented in SolrNet.Utils.Container.

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

Removes all components with service type T

Template Parameters:
TService type

Implemented in SolrNet.Utils.Container.


The documentation for this interface was generated from the following file:
  • SolrNet/Utils/IContainer.cs
Generated on Sun May 3 2015 17:19:12 for SolrNet by  doxygen 1.7.2