C# 클래스 Cedar.Framework.Common.Client.WebAPI.ServiceLocatableDependencyResolver

A custom DependencyResolver which uses ServiceLocator to acticvate service.
상속: IDependencyResolver, IDependencyScope, IDisposable
파일 보기 프로젝트 열기: Chinaccn/surfboard

공개 메소드들

메소드 설명
BeginScope ( ) : IDependencyScope

Begins the scope.

Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

GetService ( Type serviceType ) : object

Gets the service.

GetServices ( Type serviceType ) : IEnumerable

Gets the services.

ServiceLocatableDependencyResolver ( IServiceLocator serviceLocator ) : System

Initializes a new instance of the ServiceLocatableDependencyResolver class.

ServiceLocatableDependencyResolver ( string serviceLocatorName = null ) : System

Initializes a new instance of the ServiceLocatableDependencyResolver class.

비공개 메소드들

메소드 설명
AddDisposableService ( object servie ) : void

메소드 상세

BeginScope() 공개 메소드

Begins the scope.
public BeginScope ( ) : IDependencyScope
리턴 IDependencyScope

Dispose() 공개 메소드

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
리턴 void

GetService() 공개 메소드

Gets the service.
public GetService ( Type serviceType ) : object
serviceType System.Type Type of the service.
리턴 object

GetServices() 공개 메소드

Gets the services.
public GetServices ( Type serviceType ) : IEnumerable
serviceType System.Type Type of the service.
리턴 IEnumerable

ServiceLocatableDependencyResolver() 공개 메소드

Initializes a new instance of the ServiceLocatableDependencyResolver class.
public ServiceLocatableDependencyResolver ( IServiceLocator serviceLocator ) : System
serviceLocator IServiceLocator The service locator.
리턴 System

ServiceLocatableDependencyResolver() 공개 메소드

Initializes a new instance of the ServiceLocatableDependencyResolver class.
public ServiceLocatableDependencyResolver ( string serviceLocatorName = null ) : System
serviceLocatorName string Name of the service locator.
리턴 System