Ejemplo n.º 1
0
		private WfProcessDecoratorCollection GetConfigedDecorators()
		{
			WfProcessDecoratorCollection result = new WfProcessDecoratorCollection();

			foreach (TypeConfigurationElement typeElement in this.Decorators)
				result.Add(typeElement.CreateInstance<IWfProcessDecorator>());

			return result;
		}
Ejemplo n.º 2
0
		public WfProcessDecoratorCollection GetDecorators()
		{
			if (this._Decorators == null)
			{
				lock (this._SyncObject)
				{
					if (this._Decorators == null)
						this._Decorators = GetConfigedDecorators();
				}
			}

			return this._Decorators;
		}