public void Initialize()
 {
     _cache = _settingsStorageService.Read()
              ?? new SettingsRoot(ImmutableSortedDictionary <string, AssetPairSettings> .Empty);
     try
     {
         _settingsValidationService.Validate(_cache);
     }
     catch (Exception e)
     {
         _alertService.AlertRiskOfficer(string.Empty, "Found invalid settings on service start: " + e.Message, EventTypeEnum.InvalidSettingsFound);
     }
 }
        public void Initialize()
        {
            _cache = _settingsStorageService.Read()
                     ?? new SettingsRoot(ImmutableSortedDictionary <string, ExchangeSettings> .Empty,
                                         TimeSpan.FromSeconds(10), TimeSpan.FromMinutes(10), false);

            try
            {
                _settingsValidationService.Validate(_cache);
            }
            catch (Exception e)
            {
                _alertService.AlertRiskOfficer(string.Empty, "Found invalid settings on service start: " + e.Message,
                                               EventTypeEnum.InvalidSettingsFound);
            }
        }
示例#3
0
 public void Initialize()
 {
     _cache = _settingsStorageService.Read()
              ?? new SettingsRoot(ImmutableDictionary <string, AssetPairSettings> .Empty);
 }