Пример #1
0
        /// <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);
        }
Пример #2
0
 public AngleScrap(IReplace replace)
 {
     _replace = replace;
 }
Пример #3
0
 public void SetIReplaceProperty(IReplace iReplaceProperty)
 {
     this.iReplaceProperty = iReplaceProperty;
 }
Пример #4
0
 public Gravitytales(IReplace replace, IScrappingService angleScrapService, IDocument documentService) : base(replace, angleScrapService, documentService)
 {
 }
Пример #5
0
 public WuxiaWorld(IReplace replace, IScrappingService angleScrapService, IDocument documentService) : base(replace, angleScrapService, documentService)
 {
 }
Пример #6
0
 public ScanJs(IReplace replace, IScrappingService angleScrapService, IDocument documentService, IScrappingTechnical scrappingTechnical) : base(replace, angleScrapService, documentService)
 {
     _scrappingTechnical = scrappingTechnical;
 }
Пример #7
0
 private ReplaceResult ReplaceImplStrategy(IReplace data, IInput context)
 => data == null?ReplaceResult.CreateErroResult("Missing data") : data.Apply(ToStream(), context);
Пример #8
0
 public BaseNovel(IReplace replace, IScrappingService angleScrapService, IDocument documentService)
 {
     _replace           = replace;
     _angleScrapService = angleScrapService;
     _documentService   = documentService;
 }
Пример #9
0
 public MangaLel(IReplace replace, IScrappingService angleScrapService, IDocument documentService) : base(replace, angleScrapService, documentService)
 {
     _replace           = replace;
     _angleScrapService = angleScrapService;
     _documentService   = documentService;
 }
Пример #10
0
 public WebNovel(IReplace replace, IScrappingService angleScrapService, IDocument documentService) : base(replace, angleScrapService, documentService)
 {
 }