Show / Hide Table of Contents

Class ZptDocumentRenderer

A service which coordinates the process of rendering a ZPT document.

Inheritance
System.Object
ZptDocumentRenderer
Implements
IRendersZptDocument
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 Source

ZptDocumentRenderer(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 Source

RenderAsync(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 stream.

Returns
Type Description
System.Threading.Tasks.Task<System.IO.Stream>

A task which provides an output stream, containing the result of the operation.

Implements

IRendersZptDocument
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX