ServiceConnectionCreateWithWindowsAuthenticationAsync Method (Uri, ICredentials, String, NullableDWProductTypes, HttpClientHandler, ProductInfoHeaderValue)DocuWare Platform .NET API
Creates a connection for the specified service URI using NTLM authentication.

Namespace: DocuWare.Platform.ServerClient
Assembly: DocuWare.Platform.ServerClient (in DocuWare.Platform.ServerClient.dll) Version: Version 6.6
Syntax

C#
public static Task<ServiceConnection> CreateWithWindowsAuthenticationAsync(
	Uri serviceUri,
	ICredentials credentials,
	string organization = null,
	Nullable<DWProductTypes> licenseType = null,
	HttpClientHandler httpClientHandler = null,
	ProductInfoHeaderValue[] userAgent = null
)

Parameters

serviceUri
Type: SystemUri
The service URI.
credentials
Type: System.NetICredentials
The credentials. This should be some credentials which can be used in the NTLM authentication protocol.
organization (Optional)
Type: SystemString
The organization to connect. You do no need to specify this parameter in case there is only a single organization in the system you want to connect to.
licenseType (Optional)
Type: SystemNullableDWProductTypes
Type of the license to lock.
httpClientHandler (Optional)
Type: System.Net.HttpHttpClientHandler
The HTTP client handler.
userAgent (Optional)
Type: System.Net.Http.HeadersProductInfoHeaderValue
The parts of the user agent header. You should specify these values in order to identify you application. If this parameter is set to null then the process name and version of you application is used as user agent string. If you do not want to submit any user agent, you must set this parameter to an empty array.

Return Value

Type: TaskServiceConnection
A task which is creating a proxy which handles further requests.
See Also

Reference