コード例 #1
0
        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);
        }
コード例 #2
0
        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);
            }
        }