C# Класс Ninject.Extensions.NamedScope.NamedScope

A resolution root that specifies a named scope.
Наследование: DisposeNotifyingObject, IResolutionRoot
Показать файл Открыть проект

Открытые методы

Метод Описание
CanResolve ( IRequest request ) : bool

Determines whether the specified request can be resolved.

CanResolve ( IRequest request, bool ignoreImplicitBindings ) : bool

Determines whether the specified request can be resolved.

CreateRequest ( Type service, bool>.Func constraint, IEnumerable parameters, bool isOptional, bool isUnique ) : IRequest

Creates a request for the specified service.

NamedScope ( IResolutionRoot resolutionRoot ) : System

Initializes a new instance of the NamedScope class.

Release ( object instance ) : bool

Deactivates and releases the specified instance if it is currently managed by Ninject.

Resolve ( IRequest request ) : IEnumerable

Resolves instances for the specified request. The instances are not actually resolved until a consumer iterates over the enumerator.

Описание методов

CanResolve() публичный Метод

Determines whether the specified request can be resolved.
public CanResolve ( IRequest request ) : bool
request IRequest The request.
Результат bool

CanResolve() публичный Метод

Determines whether the specified request can be resolved.
public CanResolve ( IRequest request, bool ignoreImplicitBindings ) : bool
request IRequest The request.
ignoreImplicitBindings bool if set to true implicit bindings are ignored.
Результат bool

CreateRequest() публичный Метод

Creates a request for the specified service.
public CreateRequest ( Type service, bool>.Func constraint, IEnumerable parameters, bool isOptional, bool isUnique ) : IRequest
service System.Type The service that is being requested.
constraint bool>.Func The constraint to apply to the bindings to determine if they match the request.
parameters IEnumerable The parameters to pass to the resolution.
isOptional bool True if the request is optional; otherwise, false.
isUnique bool True if the request should return a unique result; otherwise, false.
Результат IRequest

NamedScope() публичный Метод

Initializes a new instance of the NamedScope class.
public NamedScope ( IResolutionRoot resolutionRoot ) : System
resolutionRoot IResolutionRoot The decorated resolution root.
Результат System

Release() публичный Метод

Deactivates and releases the specified instance if it is currently managed by Ninject.
public Release ( object instance ) : bool
instance object The instance to release.
Результат bool

Resolve() публичный Метод

Resolves instances for the specified request. The instances are not actually resolved until a consumer iterates over the enumerator.
public Resolve ( IRequest request ) : IEnumerable
request IRequest The request to resolve.
Результат IEnumerable