C# Class AsgSearch.web.App_Start.UnityConfig

Specifies the Unity configuration for the main container.
Afficher le fichier Open project: asg123/NTRquizzes

Méthodes publiques

Méthode Description
GetConfiguredContainer ( ) : IUnityContainer

Gets the configured Unity container.

RegisterTypes ( IUnityContainer container ) : void

Registers the type mappings with the Unity container.

There is no need to register concrete types such as controllers or API controllers (unless you want to change the defaults), as Unity allows resolving a concrete type even if it was not previously registered.

Method Details

GetConfiguredContainer() public static méthode

Gets the configured Unity container.
public static GetConfiguredContainer ( ) : IUnityContainer
Résultat IUnityContainer

RegisterTypes() public static méthode

Registers the type mappings with the Unity container.
There is no need to register concrete types such as controllers or API controllers (unless you want to change the defaults), as Unity allows resolving a concrete type even if it was not previously registered.
public static RegisterTypes ( IUnityContainer container ) : void
container IUnityContainer The unity container to configure.
Résultat void