Exemplo n.º 1
0
        private void PushRenderPool(RenderDescriptor renderDescriptor)
        {
            var name = NormalizeRenderName(renderDescriptor.Name);

            if (!_renderPool.ContainsKey(name))
            {
                _renderPool[name] = new Stack <RenderDescriptor>();
            }
            _renderPool[name].Push(renderDescriptor);
        }
Exemplo n.º 2
0
        private RenderDescriptor GenerateNewRenderDescriptor(string renderName)
        {
            var name           = NormalizeRenderName(renderName);
            var implementation = ResolveService <IRender>(name);

            if (null == implementation)
            {
                throw new RenderNotFoundException("cannot find " + name);
            }
            var result = new RenderDescriptor(implementation)
            {
                Factory = this
            };

            return(result);
        }
Exemplo n.º 3
0
 /// <summary>
 ///     Executes on creation with setting action descriptor
 /// </summary>
 /// <param name="descriptor"> </param>
 public void SetDescriptor(RenderDescriptor descriptor)
 {
     Descriptor = descriptor;
 }
Exemplo n.º 4
0
		/// <summary>
		/// 	Executes on creation with setting action descriptor
		/// </summary>
		/// <param name="descriptor"> </param>
		public void SetDescriptor(RenderDescriptor descriptor) {
			Descriptor = descriptor;
		}