Class PlatformClientConfiguration
A interface which is used to calculate a hash to identify the machine or device the application is running.
Inheritance
Namespace: DocuWare.Platform.ServerClient
Assembly: DocuWare.Platform.ServerClient.dll
Syntax
public abstract class PlatformClientConfiguration : object
Properties
DefaultProductInfoHeader
Gets or sets the default product information header.
Declaration
public static ProductInfoHeaderValue DefaultProductInfoHeader { get; set; }
Property Value
Type | Description |
---|---|
ProductInfoHeaderValue | The default product information header. |
Methods
AddProductInfoHeaderValueOfExecutingApplication(HttpHeaderValueCollection<ProductInfoHeaderValue>)
Gets the product information header value of executing application.
Declaration
public abstract void AddProductInfoHeaderValueOfExecutingApplication(HttpHeaderValueCollection<ProductInfoHeaderValue> userAgent)
Parameters
Type | Name | Description |
---|---|---|
HttpHeaderValueCollection<ProductInfoHeaderValue> | userAgent |
CreateDefaultHttpMessageHandler()
Creates the default HTTP message handler.
Declaration
public abstract HttpMessageHandler CreateDefaultHttpMessageHandler()
Returns
Type | Description |
---|---|
HttpMessageHandler | The default message handler which is used when connection to a service in case there is no explicit handler given. |
CreateHandlerForNTLMAuthentication(System.Net.ICredentials)
Creates a
Declaration
public abstract HttpClientHandler CreateHandlerForNTLMAuthentication(System.Net.ICredentials credentials)
Parameters
Type | Name | Description |
---|---|---|
System.Net.ICredentials | credentials | The credentials. |
Returns
Type | Description |
---|---|
HttpClientHandler |
|
CreateHandlerForNTLMAuthentication(Uri, String, String, String)
Creates a
Declaration
public abstract HttpClientHandler CreateHandlerForNTLMAuthentication(Uri serviceUri, string userName, string password, string domain = null)
Parameters
Type | Name | Description |
---|---|---|
Uri | serviceUri | The service URI. |
System.String | userName | Name of the user. |
System.String | password | The password. |
System.String | domain | The domain. |
Returns
Type | Description |
---|---|
HttpClientHandler |
GetHostId()
Gets the host identifier.
Declaration
public abstract string GetHostId()
Returns
Type | Description |
---|---|
System.String | A hash identifying the machine or device the application is running. |
GetRequestTimeout()
Gets the request timeout.
Declaration
public abstract int? GetRequestTimeout()
Returns
Type | Description |
---|---|
System.Nullable<System.Int32> | The timeout in milliseconds for a request or |