Table of Contents

Class ServiceConnectionExtensions

Namespace
DocuWare.Platform.ServerClient
Assembly
DocuWare.Platform.ServerClient.dll
public static class ServiceConnectionExtensions
Inheritance
ServiceConnectionExtensions
Inherited Members

Methods

CreatePermanentUrlAsync(ServiceConnection, string)

Creates a permanent URL asynchronously.

public static Task<DeserializedHttpResponse<string>> CreatePermanentUrlAsync(this ServiceConnection serviceConnection, string url)

Parameters

TypeNameDescription
ServiceConnectionserviceConnection

The service connection.

stringurl

The URL.

Returns

TypeDescription
Task<DeserializedHttpResponse<string>>

A task which creates a URL with an authenticated user information inside.

Remarks

Use this function to take an URL and append some information about the currently authenticated user. The created URL can then be taken to access the ressource without needed to login.

CreateTemplateUri(ServiceConnection, string, IEnumerable<KeyValuePair<string, object>>)

Creates the template URI.

public static string CreateTemplateUri(this ServiceConnection serviceConnection, string templateName, IEnumerable<KeyValuePair<string, object>> paramaters)

Parameters

TypeNameDescription
ServiceConnectionserviceConnection

The service connection.

stringtemplateName

Name of the template.

IEnumerable<KeyValuePair<string, object>>paramaters

The paramaters.

Returns

TypeDescription
string

CreateTemplateUri(ServiceConnection, string, object)

Creates the template URI.

public static string CreateTemplateUri(this ServiceConnection serviceConnection, string templateName, object paramaters)

Parameters

TypeNameDescription
ServiceConnectionserviceConnection

The service connection.

stringtemplateName

Name of the template.

objectparamaters

The paramaters.

Returns

TypeDescription
string

GetAllFileCabinets(IEnumerable<Organization>)

Gets all file cabinets.

public static List<FileCabinet> GetAllFileCabinets(this IEnumerable<Organization> organizations)

Parameters

TypeNameDescription
IEnumerable<Organization>organizations

The organizations.

Returns

TypeDescription
List<FileCabinet>

The list of all file cabinets.

GetFileCabinet(ServiceConnection, string)

Gets a FileCabinet instance directly.

public static FileCabinet GetFileCabinet(this ServiceConnection serviceConnection, string fileCabinetId)

Parameters

TypeNameDescription
ServiceConnectionserviceConnection
stringfileCabinetId

Returns

TypeDescription
FileCabinet

GetPermanentUrl(ServiceConnection, string)

Creates a permanent URL.

public static string GetPermanentUrl(this ServiceConnection serviceConnection, string url)

Parameters

TypeNameDescription
ServiceConnectionserviceConnection

The service connection.

stringurl

The URL.

Returns

TypeDescription
string

An URL with an authenticated user information inside.

Remarks

Use this function to take a URL and append some information about the currently authenticated user. The created URL can then be taken to access the ressource without needed to login.