WorkSession Constructor (IServices, Template, TextReader)
Creates a WorkSession object that a host application can use to step through the process of presenting all the interviews and assembling all the documents that may result from the given template.

Namespace: HotDocs.Sdk.Server
Assembly: HotDocs.Sdk.Server (in HotDocs.Sdk.Server.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public WorkSession(
	IServices service,
	Template template,
	TextReader answers
)

Parameters

service
Type: HotDocs.Sdk.Server IServices
An object implementing the IServices interface, encapsulating the instance of HotDocs Server with which the host app is communicating.
template
Type: HotDocs.Sdk Template
The template upon which this WorkSession is based. The initial interview and/or document work items in the WorkSession will be based on this template (including its Switches property).
answers
Type: OnlineSystem.IO TextReader
A collection of XML answers to use as a starting point for the work session. The initial interview (if any) will be pre-populated with these answers, and the subsequent generation of documents will have access to these answers as well.
See Also