Interface IResolutionRoot
Provides a path to resolve instances.
Inherited Members
Namespace: Telerik.JustMock.AutoMock.Ninject.Syntax
Assembly: Telerik.JustMock.dll
Syntax
public interface IResolutionRoot : IFluentSyntax
Methods
CanResolve(IRequest)
Determines whether the specified request can be resolved.
Declaration
bool CanResolve(IRequest request)
Parameters
IRequest
request
The request. |
Returns
System.Boolean
|
CanResolve(IRequest, Boolean)
Determines whether the specified request can be resolved.
Declaration
bool CanResolve(IRequest request, bool ignoreImplicitBindings)
Parameters
IRequest
request
The request. |
System.Boolean
ignoreImplicitBindings
if set to |
Returns
System.Boolean
|
CreateRequest(Type, Func<IBindingMetadata, Boolean>, IEnumerable<IParameter>, Boolean, Boolean)
Creates a request for the specified service.
Declaration
IRequest CreateRequest(Type service, Func<IBindingMetadata, bool> constraint, IEnumerable<IParameter> parameters, bool isOptional, bool isUnique)
Parameters
System.Type
service
The service that is being requested. |
System.Func<IBindingMetadata, System.Boolean>
constraint
The constraint to apply to the bindings to determine if they match the request. |
System.Collections.Generic.IEnumerable<IParameter>
parameters
The parameters to pass to the resolution. |
System.Boolean
isOptional
|
System.Boolean
isUnique
|
Returns
IRequest
The created request. |
Inject(Object, IParameter[])
Injects the specified existing instance, without managing its lifecycle.
Declaration
void Inject(object instance, params IParameter[] parameters)
Parameters
System.Object
instance
The instance to inject. |
IParameter[]
parameters
The parameters to pass to the request. |
Release(Object)
Deactivates and releases the specified instance if it is currently managed by Ninject.
Declaration
bool Release(object instance)
Parameters
System.Object
instance
The instance to release. |
Returns
System.Boolean
langword_csharp_True if the instance was found and released; otherwise false. |
Resolve(IRequest)
Resolves instances for the specified request. The instances are not actually resolved until a consumer iterates over the enumerator.
Declaration
IEnumerable<object> Resolve(IRequest request)
Parameters
IRequest
request
The request to resolve. |
Returns
System.Collections.Generic.IEnumerable<System.Object>
An enumerator of instances that match the request. |