--- myst: substitutions: method: |- ```{image} /img/code_reference/net_library/method.ico ``` prop: |- ```{image} /img/code_reference/net_library/prop.ico ``` --- # 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 ```{code-block} CSharp :linenos: public class ErpClientSettings ``` The ErpClientSettings type exposes the following members. ## Constructors | Type | Description | |--------------------------------|------------------------------------------------------------| | {{method}} ErpClientSettings() | Initializes a new instance of the ErpClientSettings class. | ## Properties | Type | Name | Description | |--------------------------------------------|------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------| | {{prop}} [Uri][] | BaseUri | Gets or sets the service Url. | | {{prop}} Action\<[HttpResponseMessage][]\> | AfterResponse | Gets or sets the action executed after the OData request. | | {{prop}} Action\<[HttpRequestMessage][]\> | BeforeRequest | Gets or sets the action executed before the OData request. | | {{prop}} Action\<[HttpClientHandler][]\> | OnApplyClientHandler | Gets or sets the action on HttpClientHandler. | | {{prop}} 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! | | {{prop}} [ICredentials][] | Credentials | Get or set the credentials to connect with the services. | | {{prop}} [TimeSpan][] | RequestTimeout | Gets or sets the time period to wait before the request times out. | | {{prop}} [PreferredUpdateMethod][] | PreferredUpdateMethod | Gets or sets the HTTP method (PUT or MERGE) used for updating OData entities. | [Uri]: https://msdn.microsoft.com/en-us/library/system.uri(v=vs.110).aspx [HttpResponseMessage]: https://msdn.microsoft.com/en-us/library/system.net.http.httpresponsemessage(v=vs.118).aspx [HttpRequestMessage]: https://msdn.microsoft.com/en-us/library/system.net.http.httprequestmessage(v=vs.118).aspx [HttpClientHandler]: https://msdn.microsoft.com/en-us/library/system.net.http.httpclienthandler(v=vs.118).aspx [HttpMessageHandler]: https://docs.microsoft.com/en-us/previous-versions/visualstudio/hh138091%28v%3dvs.118%29 [ICredentials]: https://msdn.microsoft.com/en-us/library/system.net.icredentials%28v=vs.110%29.aspx [TimeSpan]: https://msdn.microsoft.com/en-Us/library/system.timespan(v=vs.110).aspx [PreferredUpdateMethod]: updatemethod ## See also **Reference** - [powerGate.Erp.Client namespace]()