Class EasyCheckoutCheckinExtensionsBase
- Namespace
- DocuWare.Platform.ServerClient
- Assembly
- DocuWare.Platform.ServerClient.dll
Some extensions for handling responses which can be stored as files.
public static class EasyCheckoutCheckinExtensionsBase
- Inheritance
-
EasyCheckoutCheckinExtensionsBase
- Inherited Members
Methods
CreateEasyCheckoutFileName(DeserializedHttpResponse<Stream>, string, int)
Creates the name of the easy-checkout file.
[Dolphin]
public static string CreateEasyCheckoutFileName(DeserializedHttpResponse<Stream> checkoutResponse, string fileCabinetId, int docId)
Parameters
| Type | Name | Description |
|---|---|---|
| DeserializedHttpResponse<Stream> | checkoutResponse | The checkout operation response. |
| string | fileCabinetId | The file cabinet identifier. |
| int | docId | The document identifier. |
Returns
| Type | Description |
|---|---|
| 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.
[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 |
|---|---|
| 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, int).
EasyCheckInFromFileSystemAsync(ServiceConnection, IFileUploadInfo, CheckInActionParameters)
Checks the specified file in.
[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 |
|---|---|
| Task<DeserializedHttpResponse<Document>> | A task producing the checked-in response of the check-in operation. |
EasyCheckOutToFileSystemAsync(ServiceConnection, string, int)
Checks out the specified file and saves it to the file system asynchronously.
[Dolphin]
public static Task<EasyCheckoutResult> EasyCheckOutToFileSystemAsync(this ServiceConnection serviceConnection, string fileCabinetId, int docId)
Parameters
| Type | Name | Description |
|---|---|---|
| ServiceConnection | serviceConnection | The service connection. |
| string | fileCabinetId | The file cabinet identifier. |
| int | docId | The document identifier. |
Returns
| Type | Description |
|---|---|
| Task<EasyCheckoutResult> | A task producung an instance of EasyCheckoutResult. |