Interface IHostsZptSharp
An object which is capable of hosting a ZptSharp environment, using its own dependency injection, separate from those of the containing application.
Inherited Members
Namespace: ZptSharp.Hosting
Assembly: ZptSharp.Abstractions.dll
Syntax
public interface IHostsZptSharp : IDisposable
Remarks
Use this object when you wish to make use of the the entry-points to ZptSharp, without depending upon ZptSharp being wired up into your applications's dependency injection.
Properties
| Improve this Doc View SourceBulkRenderer
Gets a service which renders many template files at once and saves the output to disk.
Declaration
IRendersManyFiles BulkRenderer { get; }
Property Value
Type | Description |
---|---|
IRendersManyFiles | The bulk renderer. |
DocumentRendererForPathFactory
Gets a service which may be used to create an instance of IRendersZptDocument, suitable for use with a given file path. The file path will be used to detect the type of document.
Note that if you wish to render a template from disk, then it is easier to use FileRenderer instead. This service is appropriate when the file path might not exist, but a stream is being provided for the template document anyway.
Declaration
IGetsZptDocumentRendererForFilePath DocumentRendererForPathFactory { get; }
Property Value
Type | Description |
---|---|
IGetsZptDocumentRendererForFilePath | The document renderer factory for file paths. |
FileRenderer
Gets a service which renders ZPT template files from disk paths.
Declaration
IRendersZptFile FileRenderer { get; }
Property Value
Type | Description |
---|---|
IRendersZptFile | The file renderer. |
StreamCopier
Gets a service which copies a System.IO.Stream to a System.IO.TextWriter.
Declaration
IWritesStreamToTextWriter StreamCopier { get; }
Property Value
Type | Description |
---|---|
IWritesStreamToTextWriter | The stream-copying service. |