C# Class Icing.Web.Unity.UnityDependencyResolver

Provides methods that simplify service location and dependency resolution with a Unity container backing.
Inheritance: System.Web.Mvc.IDependencyResolver, System.Web.Http.Dependencies.IDependencyResolver
Afficher le fichier Open project: benallred/Icing Class Usage Examples

Méthodes publiques

Méthode Description
BeginScope ( ) : IDependencyScope

Starts a resolution scope.

Dispose ( ) : void

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

GetService ( Type serviceType ) : object

Resolves singly registered services that support arbitrary object creation.

GetServices ( Type serviceType ) : IEnumerable

Resolves multiply registered services.

UnityDependencyResolver ( IUnityContainer unityContainer ) : System

Initializes a new instance of the UnityDependencyResolver class.

Method Details

BeginScope() public méthode

Starts a resolution 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

Resolves singly registered services that support arbitrary object creation.
public GetService ( Type serviceType ) : object
serviceType System.Type The type of the requested service or object.
Résultat object

GetServices() public méthode

Resolves multiply registered services.
public GetServices ( Type serviceType ) : IEnumerable
serviceType System.Type The type of the requested services.
Résultat IEnumerable

UnityDependencyResolver() public méthode

Initializes a new instance of the UnityDependencyResolver class.
is null.
public UnityDependencyResolver ( IUnityContainer unityContainer ) : System
unityContainer IUnityContainer The unity container.
Résultat System