SingletonCollectionTInterface Class |
Namespace: Crosser.Resolve
public static class SingletonCollection<TInterface>
The SingletonCollectionTInterface type exposes the following members.
| Name | Description | |
|---|---|---|
| AllowMultipleOfSameType |
If false the resolved types mapped to the TInterface have to be unique. Default is true
|
| Name | Description | |
|---|---|---|
| Add |
Add a new singleton mapping
| |
| DisableAll |
Disables all mapped dependencies
| |
| DisableAllOfTClass |
Disables all types of a specific type TClass where TClass implements TInterface
| |
| EnableAll |
Enables all mapped dependencies
| |
| EnableAllOfTClass |
Enables all types of a specific type TClass where TClass implements TInterface
| |
| GetAll |
Will return all enabled mapping for this interface
| |
| GetNamedInstance |
Returns a singleton instance of type TInterface (if found)
| |
| Properties(String) |
Returns properties for a named instance
| |
| PropertiesTClass |
Returns properties for the first type of TClass where TClass implements TInterface
| |
| RemoveTClass |
Removes all mappings to the Type of TClass where TClass implements TInterface
| |
| Reset |
This will clear the mapping.
|