Click or drag to resize

SingletonCollectionTInterface Class

Enables mapping of many singletons to a interface
Inheritance Hierarchy
SystemObject
  Crosser.ResolveSingletonCollectionTInterface

Namespace:  Crosser.Resolve
Assembly:  Crosser.Resolver (in Crosser.Resolver.dll) Version: 0.0.9.1
Syntax
C#
public static class SingletonCollection<TInterface>

Type Parameters

TInterface
Interface to map to

The SingletonCollectionTInterface type exposes the following members.

Properties
  NameDescription
Public propertyStatic memberAllowMultipleOfSameType
If false the resolved types mapped to the TInterface have to be unique. Default is true
Top
Methods
  NameDescription
Public methodStatic memberAdd
Add a new singleton mapping
Public methodStatic memberDisableAll
Disables all mapped dependencies
Public methodStatic memberDisableAllOfTClass
Disables all types of a specific type TClass where TClass implements TInterface
Public methodStatic memberEnableAll
Enables all mapped dependencies
Public methodStatic memberEnableAllOfTClass
Enables all types of a specific type TClass where TClass implements TInterface
Public methodStatic memberGetAll
Will return all enabled mapping for this interface
Public methodStatic memberGetNamedInstance
Returns a singleton instance of type TInterface (if found)
Public methodStatic memberProperties(String)
Returns properties for a named instance
Public methodStatic memberPropertiesTClass
Returns properties for the first type of TClass where TClass implements TInterface
Public methodStatic memberRemoveTClass
Removes all mappings to the Type of TClass where TClass implements TInterface
Public methodStatic memberReset
This will clear the mapping.
Top
See Also