C# Class Cares.WebApi.UnityConfig

Specifies the Unity configuration for the main container.
显示文件 Open project: innoist/GF-FRS

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