mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-12 13:47:23 +01:00
fix idiocy
This commit is contained in:
parent
3a9f93b157
commit
b858f8286e
2 changed files with 2 additions and 2 deletions
|
|
@ -41,11 +41,11 @@ public class MareConfigurationServiceClient<T> : IHostedService, IConfigurationS
|
|||
|
||||
public MareConfigurationServiceClient(ILogger<MareConfigurationServiceClient<T>> logger, IOptionsMonitor<T> config, ServerTokenGenerator serverTokenGenerator)
|
||||
{
|
||||
_onChanged = _config.OnChange((c) => { ConfigChangedEvent?.Invoke(this, EventArgs.Empty); });
|
||||
_config = config;
|
||||
_logger = logger;
|
||||
_serverTokenGenerator = serverTokenGenerator;
|
||||
_httpClient = new();
|
||||
_onChanged = config.OnChange((c) => { ConfigChangedEvent?.Invoke(this, EventArgs.Empty); });
|
||||
}
|
||||
|
||||
public bool IsMain => false;
|
||||
|
|
|
|||
|
|
@ -17,8 +17,8 @@ public sealed class MareConfigurationServiceServer<T> : IDisposable, IConfigurat
|
|||
|
||||
public MareConfigurationServiceServer(IOptionsMonitor<T> config)
|
||||
{
|
||||
_onChanged = _config.OnChange((c) => { ConfigChangedEvent?.Invoke(this, EventArgs.Empty); });
|
||||
_config = config;
|
||||
_onChanged = config.OnChange((c) => { ConfigChangedEvent?.Invoke(this, EventArgs.Empty); });
|
||||
}
|
||||
|
||||
public T1 GetValueOrDefault<T1>(string key, T1 defaultValue)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue