Interface IDependencyResolver
Provides an ability to resolve instances of objects.
Namespace: Cqrs.Configuration
Assembly: Cqrs.dll
Syntax
public interface IDependencyResolver
Methods
Resolve(Type)
Resolves a single instance for the specified type
.
Different implementations may return the first or last instance found or may return an exception.
Declaration
object Resolve(Type type)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type | The System.Type of object you want to resolve. |
Returns
Type | Description |
---|---|
System.Object | An instance of type |
Resolve<T>()
Resolves a single instance for the specified T
.
Different implementations may return the first or last instance found or may return an exception.
Declaration
T Resolve<T>()
Returns
Type | Description |
---|---|
T | An instance of type |
Type Parameters
Name | Description |
---|---|
T | The System.Type of object you want to resolve. |