ErpClientSettings Class
Settings used to manipulate requests, timeouts etc. send by the client.
Namespace: powerGate.Erp.Client
Assembly: powerGate.Erp.Client.dll
Inheritance Hierarchy
System.Object
powerGate.Erp.Client.ErpClientSettings
Syntax
1 | public class ErpClientSettings |
The ErpClientSettings type exposes the following members.
Constructors
Type |
Description |
---|---|
ErpClientSettings() |
Initializes a new instance of the ErpClientSettings class. |
Properties
Type |
Name |
Description |
---|---|---|
BaseUri |
Gets or sets the service Url. |
|
Action<HttpResponseMessage> |
AfterResponse |
Gets or sets the action executed after the OData request. |
Action<HttpRequestMessage> |
BeforeRequest |
Gets or sets the action executed before the OData request. |
Action<HttpClientHandler> |
OnApplyClientHandler |
Gets or sets the action on HttpClientHandler. |
Func<HttpMessageHandler> |
OnCreateMessageHandler |
Called before every request and the returned handler is used to send the the requests. ATTENTION: If set, then ‘OnApplyClientHandler’ will not be called anymore! |
Credentials |
Get or set the credentials to connect with the services. |
|
RequestTimeout |
Gets or sets the time period to wait before the request times out. |
|
PreferredUpdateMethod |
Gets or sets the HTTP method (PUT or MERGE) used for updating OData entities. |
See also
Reference