Class ConnectionPreferences
Preferences for connection behavior
Inheritance
Inherited Members
Namespace: Innovator.Client
Assembly: Innovator.Client.dll
Syntax
public class ConnectionPreferences
Constructors
| Improve this Doc View SourceConnectionPreferences()
Initializes a new instance of the ConnectionPreferences class.
Declaration
public ConnectionPreferences()
ConnectionPreferences(Action<XmlWriter>)
Initializes a new instance of the ConnectionPreferences class from XML
Declaration
public ConnectionPreferences(Action<XmlWriter> xml)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Action<System.Xml.XmlWriter> | xml | A method for writing the XML to an System.Xml.XmlWriter |
Properties
| Improve this Doc View SourceAuthCallback
By default, connections to URLs with mapping files will send login requests to any defined authentication service. If the callback is overriden, it will be used instead. If undefined, no authentication process will be called
Declaration
public Func<INetCredentials, string, bool, IPromise<ICredentials>> AuthCallback { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Func<INetCredentials, System.String, System.Boolean, IPromise<ICredentials>> |
Credentials
Default credentials used for immediate log in
Declaration
public ICredentials Credentials { get; set; }
Property Value
| Type | Description |
|---|---|
| ICredentials |
DefaultTimeout
Default timeout in milliseconds
Declaration
public int ? DefaultTimeout { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Int32> |
Headers
Gets the headers to send to the server with each request
Declaration
public ArasHeaders Headers { get; }
Property Value
| Type | Description |
|---|---|
| ArasHeaders |
HttpService
Gets or sets the HTTP client to use for making server requests
Declaration
public HttpClient HttpService { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Net.Http.HttpClient |
ItemFactory
Gets or sets the item factory to use for creating item models
Declaration
public IItemFactory ItemFactory { get; set; }
Property Value
| Type | Description |
|---|---|
| IItemFactory |
Name
Gets or sets the name of the connection
Declaration
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Url
The URL to use if not otherwise specified
Declaration
public string Url { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |