C# Class Dependinator.Common.SettingsHandling.Private.SettingsService

Inheritance: ISettingsService
Datei anzeigen Open project: michael-reichenauer/Dependinator

Public Methods

Method Description
Edit ( Action editAction ) : void
Edit ( string path, Action editAction ) : void
EnsureExists ( ) : void
Get ( ) : T
Get ( string path ) : T
GetFilePath ( ) : string
Set ( setting ) : void
Set ( string path, setting ) : void
SettingsService ( ModelMetadata folder ) : System

Private Methods

Method Description
GetProgramSettingsPath ( ) : string
GetSettingsFilePath ( string folderPath ) : string
GetWorkFolderSettingsPath ( ) : string
ParentFolderExists ( string path ) : bool
ReadAs ( string path ) : T
Set ( WorkFolderSettings settings ) : void
Set ( string path, WorkFolderSettings settings ) : void
TryReadFileText ( string path ) : string
WriteAs ( string path, obj ) : void
WriteFileText ( string path, string text ) : void

Method Details

Edit() public method

public Edit ( Action editAction ) : void
editAction Action
return void

Edit() public method

public Edit ( string path, Action editAction ) : void
path string
editAction Action
return void

EnsureExists() public method

public EnsureExists ( ) : void
return void

Get() public method

public Get ( ) : T
return T

Get() public method

public Get ( string path ) : T
path string
return T

GetFilePath() public method

public GetFilePath ( ) : string
return string

Set() public method

public Set ( setting ) : void
return void

Set() public method

public Set ( string path, setting ) : void
path string
return void

SettingsService() public method

public SettingsService ( ModelMetadata folder ) : System
folder ModelMetadata
return System