C# 클래스 Innovatian.Configuration.AbstractConfigurationSource

AbstractConfigurationSource provides a skeleton implementation of IConfigurationSource which provides all merging, adding, and expanding features. Inheritors provide implementation specific loading and saving functionality.
상속: IConfigurationSource
파일 보기 프로젝트 열기: idavis/innovatian.configuration

공개 메소드들

메소드 설명
Add ( IConfigurationSection section ) : void

Adds a named configuration section to this source. If the section name is already in this source, the values from the new source will override and be added.

Clear ( ) : void

Clears the sections and sources of this instance.

ExpandKeyValues ( ) : void

Processes all sections expanding configuration variables and saving the new values.

GetEnumerator ( ) : IEnumerator

Returns an enumerator that iterates through the collection.

Merge ( ) : void

Merges the sources into this instance. Each source's sections will be added and merged. If the sources contain duplicate sections, they will be merged.

Reload ( ) : void

Discards all sections and merged sources and reloads a fresh set of settings.

Save ( ) : void

Saves all sections. All data merged from other merged sources will be included.

보호된 메소드들

메소드 설명
AbstractConfigurationSource ( ) : System

Initializes a new instance of the AbstractConfigurationSource class.

OnPropertyChanged ( string section, string key ) : void

Called when [property changed].

비공개 메소드들

메소드 설명
Expand ( IConfigurationSection section, string key ) : string
ExpandValue ( IConfigurationSection section, string search ) : string
GetResultFromCurrentSection ( string keyName, IConfigurationSection section ) : string
GetResultFromExternalSection ( string sectionName, string keyName ) : string
IEnumerable ( ) : IEnumerator

Returns an enumerator that iterates through a collection.

MergeSectionIntoSource ( IConfigurationSection section ) : void

메소드 상세

AbstractConfigurationSource() 보호된 메소드

Initializes a new instance of the AbstractConfigurationSource class.
protected AbstractConfigurationSource ( ) : System
리턴 System

Add() 공개 메소드

Adds a named configuration section to this source. If the section name is already in this source, the values from the new source will override and be added.
public Add ( IConfigurationSection section ) : void
section IConfigurationSection The named section to add.
리턴 void

Clear() 공개 메소드

Clears the sections and sources of this instance.
public Clear ( ) : void
리턴 void

ExpandKeyValues() 공개 메소드

Processes all sections expanding configuration variables and saving the new values.
public ExpandKeyValues ( ) : void
리턴 void

GetEnumerator() 공개 메소드

Returns an enumerator that iterates through the collection.
public GetEnumerator ( ) : IEnumerator
리턴 IEnumerator

Merge() 공개 메소드

Merges the sources into this instance. Each source's sections will be added and merged. If the sources contain duplicate sections, they will be merged.
public Merge ( ) : void
리턴 void

OnPropertyChanged() 보호된 메소드

Called when [property changed].
protected OnPropertyChanged ( string section, string key ) : void
section string The section.
key string The key.
리턴 void

Reload() 공개 추상적인 메소드

Discards all sections and merged sources and reloads a fresh set of settings.
public abstract Reload ( ) : void
리턴 void

Save() 공개 추상적인 메소드

Saves all sections. All data merged from other merged sources will be included.
public abstract Save ( ) : void
리턴 void