Class EasyCheckoutCheckinExtensionsBase
Some extensions for handling responses which can be stored as files.
Inheritance
Inherited Members
Namespace: DocuWare.Platform.ServerClient
Assembly: DocuWare.Platform.ServerClient.dll
Syntax
public static class EasyCheckoutCheckinExtensionsBase
Methods
CreateEasyCheckoutFileName(DeserializedHttpResponse<Stream>, String, Int32)
Creates the name of the easy-checkout file.
Declaration
[Dolphin]
public static string CreateEasyCheckoutFileName(DeserializedHttpResponse<Stream> checkoutResponse, string fileCabinetId, int docId)
Parameters
| Type | Name | Description |
|---|---|---|
| DeserializedHttpResponse<System.IO.Stream> | checkoutResponse | The checkout operation response. |
| System.String | fileCabinetId | The file cabinet identifier. |
| System.Int32 | docId | The document identifier. |
Returns
| Type | Description |
|---|---|
| System.String | The file name which contains all information encoded in order to check in the file again. |
EasyCheckInFromFileSystemAsync(ServiceConnection, IFileUploadInfo)
Checks the specified file in.
Declaration
[Dolphin]
public static Task<DeserializedHttpResponse<Document>> EasyCheckInFromFileSystemAsync(this ServiceConnection serviceConnection, IFileUploadInfo fileToCheckin)
Parameters
| Type | Name | Description |
|---|---|---|
| ServiceConnection | serviceConnection | The service connection. |
| IFileUploadInfo | fileToCheckin | The file to checkin. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<DeserializedHttpResponse<Document>> | A task producing the checked-in response of the check-in operation. |
Remarks
The name of fileToCheckin must be taken from EasyCheckOutToFileSystemAsync(ServiceConnection, String, Int32).
EasyCheckInFromFileSystemAsync(ServiceConnection, IFileUploadInfo, CheckInActionParameters)
Checks the specified file in.
Declaration
[Dolphin]
public static Task<DeserializedHttpResponse<Document>> EasyCheckInFromFileSystemAsync(this ServiceConnection serviceConnection, IFileUploadInfo fileToCheckin, CheckInActionParameters checkInParams)
Parameters
| Type | Name | Description |
|---|---|---|
| ServiceConnection | serviceConnection | The service connection. |
| IFileUploadInfo | fileToCheckin | The file to check in. |
| CheckInActionParameters | checkInParams | The check in parameters. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<DeserializedHttpResponse<Document>> | A task producing the checked-in response of the check-in operation. |
EasyCheckOutToFileSystemAsync(ServiceConnection, String, Int32)
Checks out the specified file and saves it to the file system asynchronously.
Declaration
[Dolphin]
public static Task<EasyCheckoutResult> EasyCheckOutToFileSystemAsync(this ServiceConnection serviceConnection, string fileCabinetId, int docId)
Parameters
| Type | Name | Description |
|---|---|---|
| ServiceConnection | serviceConnection | The service connection. |
| System.String | fileCabinetId | The file cabinet identifier. |
| System.Int32 | docId | The document identifier. |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<EasyCheckoutResult> | A task producung an instance of EasyCheckoutResult. |