/// <summary> /// Try to replace an element in this input. /// </summary> /// <param name="data">Reference to replacement object information</param> /// <returns> /// <para> /// A <see cref="ReplaceResult"/> reference that contains the result of the operation, to check if the operation is correct, the <b>Success</b> /// property will be <b>true</b> and the <b>Result</b> property will contain the Result; Otherwise, the the <b>Success</b> property /// will be false and the <b>Errors</b> property will contain the errors associated with the operation, if they have been filled in. /// </para> /// <para> /// The type of the return Result is <see cref="ReplaceResultData"/>, which contains the operation result /// </para> /// </returns> public ReplaceResult Replace(IReplace data) { Logger.Instance.Debug(""); Logger.Instance.Debug(" Assembly: iTin.Utilities.Pdf.Writer, Namespace: iTin.Utilities.Pdf.Writer, Class: PdfInput"); Logger.Instance.Debug(" Try to replace an element in this input"); Logger.Instance.Debug($" > Signature: ({typeof(ReplaceResult)}) Replace({typeof(IReplace)})"); Logger.Instance.Debug($" > data: {data}"); ReplaceResult result = ReplaceImplStrategy(data, this); if (AutoUpdateChanges) { Input = result.Result.OutputStream; } Logger.Instance.Debug($" > Output: Replacement = {result.Success}"); return(result); }
public AngleScrap(IReplace replace) { _replace = replace; }
public void SetIReplaceProperty(IReplace iReplaceProperty) { this.iReplaceProperty = iReplaceProperty; }
public Gravitytales(IReplace replace, IScrappingService angleScrapService, IDocument documentService) : base(replace, angleScrapService, documentService) { }
public WuxiaWorld(IReplace replace, IScrappingService angleScrapService, IDocument documentService) : base(replace, angleScrapService, documentService) { }
public ScanJs(IReplace replace, IScrappingService angleScrapService, IDocument documentService, IScrappingTechnical scrappingTechnical) : base(replace, angleScrapService, documentService) { _scrappingTechnical = scrappingTechnical; }
private ReplaceResult ReplaceImplStrategy(IReplace data, IInput context) => data == null?ReplaceResult.CreateErroResult("Missing data") : data.Apply(ToStream(), context);
public BaseNovel(IReplace replace, IScrappingService angleScrapService, IDocument documentService) { _replace = replace; _angleScrapService = angleScrapService; _documentService = documentService; }
public MangaLel(IReplace replace, IScrappingService angleScrapService, IDocument documentService) : base(replace, angleScrapService, documentService) { _replace = replace; _angleScrapService = angleScrapService; _documentService = documentService; }
public WebNovel(IReplace replace, IScrappingService angleScrapService, IDocument documentService) : base(replace, angleScrapService, documentService) { }