C# Class WebApplication.App_Start.UnityConfig

Specifies the Unity configuration for the main container.
ファイルを表示 Open project: SmartStepGroup/AgileCamp2015_Master Class Usage Examples

Public Methods

Method 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 method

Gets the configured Unity container.
public static GetConfiguredContainer ( ) : IUnityContainer
return IUnityContainer

RegisterTypes() public static method

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.
return void