C# Класс ApplicationRepository.App_Start.UnityConfig

Specifies the Unity configuration for the main container.
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

GetConfiguredContainer() публичный статический Метод

Gets the configured Unity container.
public static GetConfiguredContainer ( ) : IUnityContainer
Результат IUnityContainer

RegisterTypes() публичный статический Метод

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.
Результат void