Class OpenDIHTTPConnection
Open DI representation of a WMHTTPConnection.
Inherited Members
Namespace: Quantellia.WMServer.OpenDI
Assembly: WMServer.dll
Syntax
public class OpenDIHTTPConnection : OpenDIAsset
Constructors
OpenDIHTTPConnection()
Default constructor
Declaration
public OpenDIHTTPConnection()
OpenDIHTTPConnection(WMHTTPConnection)
Constructor that initializes a new instance with the data from a WMModelBase object.
Declaration
public OpenDIHTTPConnection(WMHTTPConnection asset)
Parameters
Type | Name | Description |
---|---|---|
WMHTTPConnection | asset | The asset with which to initialize this OpenDIModel |
Properties
AuthenticationData
The authentication token, username/password, header name, etc... for this resource. Is AES-256 encrypted on the database. Is specific to the given AuthenticationType.
Declaration
public Dictionary<string, string> AuthenticationData { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<string, string> |
AuthenticationType
How this connection is expected to be authenticated.
Declaration
public string AuthenticationType { get; set; }
Property Value
Type | Description |
---|---|
string |
Endpoint
The base URL to form the connection with. Any trailing / will be trimmed. Any WMHTTPRequest using this connection can optionally specify additional routes on top of this base URL.
Declaration
public string Endpoint { get; set; }
Property Value
Type | Description |
---|---|
string |
Headers
Required headers and values for this resource. Can be overwritten by any WMHTTPRequest using this connection.
Declaration
public Dictionary<string, string> Headers { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<string, string> |
Methods
ToDTO()
Create a new WMHTTPConnectionDTO object that contains the properties of this OpenDIHTTPConnection
Declaration
public WMHTTPConnectionDTO ToDTO()
Returns
Type | Description |
---|---|
WMHTTPConnectionDTO | A WMHTTPConnectionDTO object that contains the properties of this OpenDIHTTPConnection |