C# Class Cedar.Framework.Common.Client.WebAPI.ServiceLocatableDependencyResolver

A custom DependencyResolver which uses ServiceLocator to acticvate service.
Inheritance: IDependencyResolver, IDependencyScope, IDisposable
Afficher le fichier Open project: Chinaccn/surfboard

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
AddDisposableService ( object servie ) : void

Method Details

BeginScope() public méthode

Begins the scope.
public BeginScope ( ) : IDependencyScope
Résultat IDependencyScope

Dispose() public méthode

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

GetService() public méthode

Gets the service.
public GetService ( Type serviceType ) : object
serviceType System.Type Type of the service.
Résultat object

GetServices() public méthode

Gets the services.
public GetServices ( Type serviceType ) : IEnumerable
serviceType System.Type Type of the service.
Résultat IEnumerable

ServiceLocatableDependencyResolver() public méthode

Initializes a new instance of the ServiceLocatableDependencyResolver class.
public ServiceLocatableDependencyResolver ( IServiceLocator serviceLocator ) : System
serviceLocator IServiceLocator The service locator.
Résultat System

ServiceLocatableDependencyResolver() public méthode

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