virtual public void SetUp() { i.SetCssAppliers(new CssAppliersImpl()); I.Attributes[HTML.Attribute.SRC] = RESOURCES + "images.jpg"; workerContextImpl = new WorkerContextImpl(); workerContextImpl.Put(typeof(HtmlPipeline).FullName, new HtmlPipelineContext(null)); }
public override IPipeline Init(IWorkerContext context) { HtmlPipelineContext clone = (HtmlPipelineContext)hpc.Clone(); context.Put(GetContextKey(), clone); return(GetNext()); }
public override IPipeline Init(IWorkerContext context) { try { ObjectContext<ICSSResolver> mc = new ObjectContext<ICSSResolver>(resolver.Clear()); context.Put(GetContextKey(), mc); return base.Init(context); } catch (CssResolverException e) { throw new PipelineException(e); } }
public override IPipeline Init(IWorkerContext context) { try { SvgPipelineContext clone = (SvgPipelineContext)hpc.Clone(); context.Put(GetContextKey(), clone); } catch (Exception e) { String message = String.Format(LocaleMessages.GetInstance().GetMessage(LocaleMessages.UNSUPPORTED_CLONING), hpc.GetType().FullName); throw new PipelineException(message, e); } return(GetNext()); }
public override IPipeline Init(IWorkerContext context) { MapContext mc = new MapContext(); continiously = true; mc[CONTINUOUS] = continiously; if (null != doc) { mc[DOCUMENT] = doc; } if (null != writer) { mc[WRITER] = writer; } context.Put(GetContextKey(), mc); return base.Init(context); }
virtual public void SetUp() { i.SetCssAppliers(new CssAppliersImpl()); I.Attributes[HTML.Attribute.SRC] = RESOURCES + "images.jpg"; workerContextImpl = new WorkerContextImpl(); workerContextImpl.Put(typeof (HtmlPipeline).FullName, new HtmlPipelineContext(null)); }
public override IPipeline Init(IWorkerContext context) { HtmlPipelineContext clone = (HtmlPipelineContext)hpc.Clone(); context.Put(GetContextKey(), clone); return GetNext(); }
public override IPipeline Init(IWorkerContext context) { try { SvgPipelineContext clone = (SvgPipelineContext)hpc.Clone(); context.Put(GetContextKey(), clone); } catch (Exception e) { String message = String.Format(LocaleMessages.GetInstance().GetMessage(LocaleMessages.UNSUPPORTED_CLONING), hpc.GetType().FullName); throw new PipelineException(message, e); } return GetNext(); }