Class DependencyResolver
Provides an ability to resolve instances of objects.
Inheritance
System.Object
DependencyResolver
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Cqrs.Configuration
Assembly: Cqrs.dll
Syntax
public abstract class DependencyResolver : IDependencyResolver
Properties
Current
The current instance of the IDependencyResolver.
Declaration
public static IDependencyResolver Current { get; protected set; }
Property Value
Type | Description |
---|---|
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
public abstract 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 |
Implements
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
public abstract 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. |