Class ConfigurationService
Inherited Members
Namespace: EasySave_Project.Service
Assembly: .dll
Syntax
public sealed class ConfigurationService
Methods
| Edit this page View SourceGetInstance()
Retrieves the singleton instance of ConfigurationService, ensuring thread safety.
Declaration
public static ConfigurationService GetInstance()
Returns
Type | Description |
---|---|
ConfigurationService | The single instance of ConfigurationService. |
GetStringSetting(string)
Retrieves a string configuration value from the application settings using the specified key.
Declaration
public string? GetStringSetting(string key)
Parameters
Type | Name | Description |
---|---|---|
string | key | The key of the setting to retrieve. |
Returns
Type | Description |
---|---|
string | The string value of the specified setting, or null if not found. |