Changed the default way to modify values in store. Added basic validation to stores. Using interfaces to DI store objects.
This commit is contained in:
@ -12,14 +12,14 @@ namespace HermesSocketServer.Socket.Handlers
|
||||
public int OperationCode { get; } = 1;
|
||||
|
||||
private readonly ChannelManager _manager;
|
||||
private readonly VoiceStore _voices;
|
||||
private readonly IStore<string, TTSVoice> _voices;
|
||||
private readonly ServerConfiguration _configuration;
|
||||
private readonly Database _database;
|
||||
private readonly HermesSocketManager _sockets;
|
||||
private readonly ILogger _logger;
|
||||
private readonly object _lock;
|
||||
|
||||
public HermesLoginHandler(ChannelManager manager, VoiceStore voices, ServerConfiguration configuration, Database database, HermesSocketManager sockets, ILogger logger)
|
||||
public HermesLoginHandler(ChannelManager manager, IStore<string, TTSVoice> voices, ServerConfiguration configuration, Database database, HermesSocketManager sockets, ILogger logger)
|
||||
{
|
||||
_manager = manager;
|
||||
_voices = voices;
|
||||
|
Reference in New Issue
Block a user