Show / Hide Table of Contents

Class ZptSharpSelfHoster

An implementation of IHostsZptSharp which wraps an System.IServiceProvider and uses that to provide the entry-points.

Inheritance
System.Object
ZptSharpSelfHoster
Implements
IHostsZptSharp
System.IDisposable
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.Hosting
Assembly: ZptSharp.dll
Syntax
public class ZptSharpSelfHoster : IHostsZptSharp, IDisposable

Constructors

| Improve this Doc View Source

ZptSharpSelfHoster(IServiceProvider)

Initializes an instance of ZptSharpSelfHoster.

Declaration
public ZptSharpSelfHoster(IServiceProvider serviceProvider)
Parameters
Type Name Description
System.IServiceProvider serviceProvider

A service provider.

Properties

| Improve this Doc View Source

BulkRenderer

Gets a service which renders many template files at once and saves the output to disk.

Declaration
public IRendersManyFiles BulkRenderer { get; }
Property Value
Type Description
IRendersManyFiles

The bulk renderer.

| Improve this Doc View Source

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
public IGetsZptDocumentRendererForFilePath DocumentRendererForPathFactory { get; }
Property Value
Type Description
IGetsZptDocumentRendererForFilePath

The document renderer factory for file paths.

| Improve this Doc View Source

FileRenderer

Gets a service which renders ZPT template files from disk paths.

Declaration
public IRendersZptFile FileRenderer { get; }
Property Value
Type Description
IRendersZptFile

The file renderer.

| Improve this Doc View Source

ServiceProvider

Gets the underlying service provider from which the current hosting environment is built.

Declaration
public IServiceProvider ServiceProvider { get; }
Property Value
Type Description
System.IServiceProvider

The service provider.

| Improve this Doc View Source

StreamCopier

Gets a service which copies a System.IO.Stream to a System.IO.TextWriter.

Declaration
public IWritesStreamToTextWriter StreamCopier { get; }
Property Value
Type Description
IWritesStreamToTextWriter

The stream-copying service.

Methods

| Improve this Doc View Source

Dispose()

Dispose of the current instance and release its resources.

Declaration
public void Dispose()
| Improve this Doc View Source

Dispose(Boolean)

Dispose the current instance.

Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type Name Description
System.Boolean disposing

If true then this disposal is explicit.

Implements

IHostsZptSharp
System.IDisposable
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX