Class ZptSharpHost
A utility to get an instance of IHostsZptSharp, enabling usage of ZptSharp without configuring it within your own application's dependency injection.
Inheritance
System.Object
ZptSharpHost
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
Assembly: ZptSharp.dll
Syntax
public static class ZptSharpHost
Remarks
Please note that this class is provided for occasions when configuring ZptSharp within your own application's dependency injection configuration is not feasible. It is always best to fully integrate ZptSharp into your own DI config where you can.
Methods
| Improve this Doc View SourceGetHost(Action<IBuildsHostingEnvironment>)
Gets the ZptSharp self-contained host.
Declaration
public static IHostsZptSharp GetHost(Action<IBuildsHostingEnvironment> builderAction)
Parameters
Type | Name | Description |
---|---|---|
System.Action<IBuildsHostingEnvironment> | builderAction | A callback used to configure the hosting environment. At minimum you must select at least one document provider & at least one expression type. |
Returns
Type | Description |
---|---|
IHostsZptSharp | A self-contained ZptSharp hosting object, providing access to a file & document renderer. |