Class ZptDocumentRenderer
A service which coordinates the process of rendering a ZPT document.
Inheritance
System.Object
ZptDocumentRenderer
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.Rendering
Assembly: ZptSharp.dll
Syntax
public class ZptDocumentRenderer : IRendersZptDocument
Constructors
| Improve this Doc View SourceZptDocumentRenderer(IServiceProvider)
Initializes a new instance of the ZptDocumentRenderer class.
Declaration
public ZptDocumentRenderer(IServiceProvider serviceProvider)
Parameters
Type | Name | Description |
---|---|---|
System.IServiceProvider | serviceProvider | Service provider. |
Methods
| Improve this Doc View SourceRenderAsync(Stream, Object, RenderingConfig, CancellationToken, IDocumentSourceInfo)
Gets the outcome of the specified rendering request as a stream.
Declaration
public Task<Stream> RenderAsync(Stream stream, object model, RenderingConfig config = null, CancellationToken token = default(CancellationToken), IDocumentSourceInfo sourceInfo = null)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | stream | The document stream. |
System.Object | model | The model to render. |
RenderingConfig | config | The rendering configuration. |
System.Threading.CancellationToken | token | An object used to cancel the operation if required. |
IDocumentSourceInfo | sourceInfo | Information about the source of the |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.IO.Stream> | A task which provides an output stream, containing the result of the operation. |