C# 클래스 GoogleCloudSamples.UnityConfig

Specifies the Unity configuration for the main container.
파일 보기 프로젝트 열기: GoogleCloudPlatform/getting-started-dotnet 1 사용 예제들

공개 메소드들

메소드 설명
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