SettingItem ISettingsServiceInternal.GetSetting(string identifier, string name) { Assertions.AssertNotEmpty(identifier, "identifier"); Assertions.AssertNotEmpty(name, "name"); SettingItem item = _settings.GetSetting(identifier, name); lock (SyncRoot) { ApplySettingValue(identifier, name, item); } return(item); }
SettingItem ISettingsServiceInternal.GetSetting(string identifier, string name) { try { Assertions.AssertNotEmpty(identifier, "identifier"); Assertions.AssertNotEmpty(name, "name"); SettingItem item = _settings.GetSetting(identifier, name); lock (SyncRoot) { ApplySettingValue(identifier, name, item); } return(item); } catch (Exception ex) { throw AlarmWorkflowFaultDetails.CreateFault(ex); } }