Table of Contents

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

TypeNameDescription
DeserializedHttpResponse<Stream>checkoutResponse

The checkout operation response.

stringfileCabinetId

The file cabinet identifier.

intdocId

The document identifier.

Returns

TypeDescription
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

TypeNameDescription
ServiceConnectionserviceConnection

The service connection.

IFileUploadInfofileToCheckin

The file to checkin.

Returns

TypeDescription
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

TypeNameDescription
ServiceConnectionserviceConnection

The service connection.

IFileUploadInfofileToCheckin

The file to check in.

CheckInActionParameterscheckInParams

The check in parameters.

Returns

TypeDescription
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

TypeNameDescription
ServiceConnectionserviceConnection

The service connection.

stringfileCabinetId

The file cabinet identifier.

intdocId

The document identifier.

Returns

TypeDescription
Task<EasyCheckoutResult>

A task producung an instance of EasyCheckoutResult.