private WfProcessDecoratorCollection GetConfigedDecorators() { WfProcessDecoratorCollection result = new WfProcessDecoratorCollection(); foreach (TypeConfigurationElement typeElement in this.Decorators) { result.Add(typeElement.CreateInstance <IWfProcessDecorator>()); } return(result); }
public WfProcessDecoratorCollection GetDecorators() { if (this._Decorators == null) { lock (this._SyncObject) { if (this._Decorators == null) { this._Decorators = GetConfigedDecorators(); } } } return(this._Decorators); }