Class FileRendererAndSaver
Implementation of IRendersInputFile which renders the file and saves the output.
Inheritance
System.Object
FileRendererAndSaver
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: ZptSharp.BulkRendering
Assembly: ZptSharp.dll
Syntax
public class FileRendererAndSaver : IRendersInputFile
Constructors
| Improve this Doc View SourceFileRendererAndSaver(IRendersZptFile, IWritesStreamToTextWriter)
Initializes a new instance of FileRendererAndSaver.
Declaration
public FileRendererAndSaver(IRendersZptFile fileRenderer, IWritesStreamToTextWriter streamCopier)
Parameters
Type | Name | Description |
---|---|---|
IRendersZptFile | fileRenderer | A single-file renderer service. |
IWritesStreamToTextWriter | streamCopier | A stream-copier service. |
Methods
| Improve this Doc View SourceRenderAsync(BulkRenderingRequest, InputFile, CancellationToken)
Renders the template described by inputFile
asynchronously
and returns a result object.
Declaration
public Task<BulkRenderingFileResult> RenderAsync(BulkRenderingRequest request, InputFile inputFile, CancellationToken token = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
BulkRenderingRequest | request | The original request to bulk-render files. |
InputFile | inputFile | The file to be rendered. |
System.Threading.CancellationToken | token | An optional cancellation token |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<BulkRenderingFileResult> | A result object indicating the outcome. |