Class OpenDIHTTPRequest
Open DI representation of a WMHTTPRequest.
Inherited Members
Namespace: Quantellia.WMServer.OpenDI
Assembly: WMServer.dll
Syntax
public class OpenDIHTTPRequest : OpenDIAsset
Constructors
OpenDIHTTPRequest()
Default constructor
Declaration
public OpenDIHTTPRequest()
OpenDIHTTPRequest(WMHTTPRequest)
Constructor that initializes a new instance with the data from a WMModelBase object.
Declaration
public OpenDIHTTPRequest(WMHTTPRequest asset)
Parameters
| Type | Name | Description |
|---|---|---|
| WMHTTPRequest | asset | The asset with which to initialize this OpenDIModel |
Properties
HTTPConnectionID
The WMHTTPConnection that this request requests from.
Declaration
public string? HTTPConnectionID { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Headers
Optional headers to add to and overwrite the Headers contained in the HTTPConnectionID
Declaration
public Dictionary<string, string>? Headers { get; set; }
Property Value
| Type | Description |
|---|---|
| Dictionary<string, string> |
Method
The method to call on this request.
Declaration
public string? Method { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Route
An additional path on top of the HTTPConnectionID's Endpoint
Declaration
public string? Route { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
ToDTODefault()
Create a new IWMAssetBaseDTO object that contains the properties of this OpenDIAsset. Throws an exception if null values without default are encountered.
Declaration
public WMHTTPRequestDTO ToDTODefault()
Returns
| Type | Description |
|---|---|
| WMHTTPRequestDTO | A IWMAssetBaseDTO object that contains the properties (or default values) of this OpenDIAsset |
ToDTOPartial()
Create a new IWMAssetBaseDTO object that contains only the properties of this OpenDIAsset with no defaults.
Declaration
public WMHTTPRequestDTO ToDTOPartial()
Returns
| Type | Description |
|---|---|
| WMHTTPRequestDTO | A IWMAssetBaseDTO object that contains the properties of this OpenDIAsset |