C# Класс GoogleCloudSamples.UnityConfig

Specifies the Unity configuration for the main container.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
ChooseBookStoreFromConfig ( ) : BookStoreFlag
GetConfigVariable ( string key ) : string

Looks for variable in app settings. Throws an exception of the key is not in the configuration.

GetConfiguredContainer ( ) : IUnityContainer

Gets the configured Unity container.

RegisterTypes ( IUnityContainer container ) : void

Registers the type mappings with the Unity container.

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

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

public static ChooseBookStoreFromConfig ( ) : BookStoreFlag
Результат BookStoreFlag

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

Looks for variable in app settings. Throws an exception of the key is not in the configuration.
public static GetConfigVariable ( string key ) : string
key string
Результат string

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

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

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

Registers the type mappings with the Unity container.
public static RegisterTypes ( IUnityContainer container ) : void
container IUnityContainer The unity container to configure.
Результат void