C# Class Pcc.PrizmApplicationServices

ファイルを表示 Open project: Accusoft/PCC-Viewer-CSharp-Annotation-Layers

Public Methods

Method Description
CreateSessionFromDocument ( string documentName ) : string

Creates a new viewing session from an existing document in document storage

CreateSessionFromFileUpload ( string filePath ) : string

Creates a new viewing session from a file

CreateSessionFromForm ( string formId ) : string

Creates a new viewing session from an existing form

ForwardRequest ( HttpContext context, string path ) : void

Forwards any given request to PrizmApplicationServices

Private Methods

Method Description
CreatePasRequest ( string method, string path = "", string queryString = "" ) : HttpWebRequest
GetProxyRequest ( HttpContext context, string method, string path, string query ) : HttpWebRequest
GetProxyRequestWithQuery ( HttpContext context, string method, string path = "", NameValueCollection query = null ) : HttpWebRequest
GetResponseStreamBytes ( WebResponse response ) : byte[]
JsonToDictionary ( string json ) : object>.Dictionary
ToQueryString ( NameValueCollection nvc ) : string
UpdateContextResponse ( HttpContext context, HttpWebResponse response ) : void

Method Details

CreateSessionFromDocument() public static method

Creates a new viewing session from an existing document in document storage
public static CreateSessionFromDocument ( string documentName ) : string
documentName string The name of the document
return string

CreateSessionFromFileUpload() public static method

Creates a new viewing session from a file
public static CreateSessionFromFileUpload ( string filePath ) : string
filePath string The full path of the file that will be uploaded
return string

CreateSessionFromForm() public static method

Creates a new viewing session from an existing form
public static CreateSessionFromForm ( string formId ) : string
formId string The ID of the previously saved form
return string

ForwardRequest() public static method

Forwards any given request to PrizmApplicationServices
public static ForwardRequest ( HttpContext context, string path ) : void
context System.Web.HttpContext The HTTP Context that will be used to access both request and response
path string The path that will be used to invoke PrizmApplicationServices
return void