using System.Collections.Generic; namespace Neo.Afx.WinService.Workflows { public partial class WorkflowTaskHandler { readonly object _propertyLock = new object(); Dictionary _settings; public Dictionary Settings { get { lock(_propertyLock) { if(_settings == null) { _settings = new Dictionary(); foreach(var serviceSetting in WorkflowTaskHandlerSettings) { _settings.Add(serviceSetting.SettingKey, serviceSetting.SettingValue); } } return _settings; } } } } }