Interface IContext
Contains information about the activation of a single instance.
Namespace: Telerik.JustMock.AutoMock.Ninject.Activation
Assembly: Telerik.JustMock.dll
Syntax
public interface IContext
Properties
Binding
Cache
GenericArguments
Gets the generic arguments for the request, if any.
Declaration
Type[] GenericArguments { get; }
Property Value
System.Type[]
|
HasInferredGenericArguments
Gets a value indicating whether the request involves inferred generic arguments.
Declaration
bool HasInferredGenericArguments { get; }
Property Value
System.Boolean
|
Kernel
Gets the kernel that is driving the activation.
Declaration
IKernel Kernel { get; }
Property Value
IKernel
|
Parameters
Gets the parameters that were passed to manipulate the activation process.
Declaration
ICollection<IParameter> Parameters { get; }
Property Value
System.Collections.Generic.ICollection<IParameter>
|
Plan
Request
Methods
GetProvider()
Gets the provider that should be used to create the instance for this context.
Declaration
IProvider GetProvider()
Returns
IProvider
The provider that should be used. |
GetScope()
Gets the scope for the context that "owns" the instance activated therein.
Declaration
object GetScope()
Returns
System.Object
The object that acts as the scope. |
Resolve()
Resolves this instance for this context.
Declaration
object Resolve()
Returns
System.Object
The resolved instance. |