C# Class MyGetMirror.InMemorySettings

Inheritance: ISettings
Show file Open project: NuGet/Entropy Class Usage Examples

Public Methods

Method Description
DeleteSection ( string section ) : bool
DeleteValue ( string section, string key ) : bool
GetNestedValues ( string section, string subSection ) : string>>.IList
GetSettingValues ( string section, bool isPath = false ) : IList
GetValue ( string section, string key, bool isPath = false ) : string
SetNestedValues ( string section, string subSection, string>.IList values ) : void
SetValue ( string section, string key, string value ) : void
SetValues ( string section, IReadOnlyList values ) : void
UpdateSections ( string section, IReadOnlyList values ) : void

Private Methods

Method Description
EmitSettingsChanged ( ) : void

Method Details

DeleteSection() public method

public DeleteSection ( string section ) : bool
section string
return bool

DeleteValue() public method

public DeleteValue ( string section, string key ) : bool
section string
key string
return bool

GetNestedValues() public method

public GetNestedValues ( string section, string subSection ) : string>>.IList
section string
subSection string
return string>>.IList

GetSettingValues() public method

public GetSettingValues ( string section, bool isPath = false ) : IList
section string
isPath bool
return IList

GetValue() public method

public GetValue ( string section, string key, bool isPath = false ) : string
section string
key string
isPath bool
return string

SetNestedValues() public method

public SetNestedValues ( string section, string subSection, string>.IList values ) : void
section string
subSection string
values string>.IList
return void

SetValue() public method

public SetValue ( string section, string key, string value ) : void
section string
key string
value string
return void

SetValues() public method

public SetValues ( string section, IReadOnlyList values ) : void
section string
values IReadOnlyList
return void

UpdateSections() public method

public UpdateSections ( string section, IReadOnlyList values ) : void
section string
values IReadOnlyList
return void