Interface ICommandingDependencyResolverAdapter
An adapter that enables the commanding framework to be used with any IoC container
Namespace: AzureFromTheTrenches.Commanding.Abstractions
Assembly: AzureFromTheTrenches.Commanding.Abstractions.dll
Syntax
public interface ICommandingDependencyResolverAdapter
Properties
| Improve this Doc View SourceAssociatedCommandingRuntime
The commanding runtime associated with this adapter - this will be set by AddCommanding in the core framework
Declaration
ICommandingRuntime AssociatedCommandingRuntime { get; set; }
Property Value
Type | Description |
---|---|
ICommandingRuntime |
Methods
| Improve this Doc View SourceRegisterInstance<TType>(TType)
Registers a singleton / instances
Declaration
ICommandingDependencyResolverAdapter RegisterInstance<TType>(TType instance)
Parameters
Type | Name | Description |
---|---|---|
TType | instance | The instance |
Returns
Type | Description |
---|---|
ICommandingDependencyResolverAdapter | The adapter for use in a fluent API |
Type Parameters
Name | Description |
---|---|
TType | The type of the singleton |
Resolve(Type)
Resolves a type
Declaration
object Resolve(Type type)
Parameters
Type | Name | Description |
---|---|---|
Type | type | The type to resolve |
Returns
Type | Description |
---|---|
System.Object | An implementation for the type |
Resolve<TType>()
Resolves a type
Declaration
TType Resolve<TType>()
Returns
Type | Description |
---|---|
TType | An implementation for the type |
Type Parameters
Name | Description |
---|---|
TType | The type to resolve |
TypeMapping(Type, Type)
Registers a transient type mapping
Declaration
ICommandingDependencyResolverAdapter TypeMapping(Type type, Type impl)
Parameters
Type | Name | Description |
---|---|---|
Type | type | The resolvable type |
Type | impl | The implementation type |
Returns
Type | Description |
---|---|
ICommandingDependencyResolverAdapter | The adapter for use in a fluent API |
TypeMapping<TType, TImpl>()
Registers a transient type mappinig
Declaration
ICommandingDependencyResolverAdapter TypeMapping<TType, TImpl>()
where TImpl : TType
Returns
Type | Description |
---|---|
ICommandingDependencyResolverAdapter | The adapter for use in a fluent API |
Type Parameters
Name | Description |
---|---|
TType | The resolvable type |
TImpl | The implementation type |