mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-03 15:40:18 -04:00
WIP Clean Architecture
Windows 8.1 App Uses keepasslib v2.44 (temporarily)
This commit is contained in:
25
ModernKeePass.Application.12/Services/SettingsService.cs
Normal file
25
ModernKeePass.Application.12/Services/SettingsService.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using ModernKeePass.Application.Common.Interfaces;
|
||||
using ModernKeePass.Domain.Interfaces;
|
||||
|
||||
namespace ModernKeePass.Application.Services
|
||||
{
|
||||
public class SettingsService: ISettingsService
|
||||
{
|
||||
private readonly ISettingsProxy _settingsProxy;
|
||||
|
||||
public SettingsService(ISettingsProxy settingsProxy)
|
||||
{
|
||||
_settingsProxy = settingsProxy;
|
||||
}
|
||||
|
||||
public T GetSetting<T>(string property, T defaultValue = default)
|
||||
{
|
||||
return _settingsProxy.GetSetting<T>(property, defaultValue);
|
||||
}
|
||||
|
||||
public void PutSetting<T>(string property, T value)
|
||||
{
|
||||
_settingsProxy.PutSetting<T>(property, value);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user