コード例 #1
0
ファイル: PdfInput.cs プロジェクト: lanicon/iPdfWriter
        /// <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
ファイル: AngleScrap.cs プロジェクト: Youru/Tools
 public AngleScrap(IReplace replace)
 {
     _replace = replace;
 }
コード例 #3
0
 public void SetIReplaceProperty(IReplace iReplaceProperty)
 {
     this.iReplaceProperty = iReplaceProperty;
 }
コード例 #4
0
ファイル: Gravitytales.cs プロジェクト: Youru/Tools
 public Gravitytales(IReplace replace, IScrappingService angleScrapService, IDocument documentService) : base(replace, angleScrapService, documentService)
 {
 }
コード例 #5
0
ファイル: WuxiaWorld.cs プロジェクト: Youru/Tools
 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
ファイル: PdfInput.cs プロジェクト: lanicon/iPdfWriter
 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
ファイル: MangaLel.cs プロジェクト: Youru/Tools
 public MangaLel(IReplace replace, IScrappingService angleScrapService, IDocument documentService) : base(replace, angleScrapService, documentService)
 {
     _replace           = replace;
     _angleScrapService = angleScrapService;
     _documentService   = documentService;
 }
コード例 #10
0
ファイル: WebNovel.cs プロジェクト: Youru/Tools
 public WebNovel(IReplace replace, IScrappingService angleScrapService, IDocument documentService) : base(replace, angleScrapService, documentService)
 {
 }