SynchronizationEngineHostCreateHttpClient Method |
Creates a new instance of an HttpClient, configured with the right auth and other headers and the BaseUri to be used to call into the cloud.
Namespace: Oracle.Cloud.Mobile.SynchronizationAssembly: Oracle.Cloud.Mobile.Synchronization.PCL (in Oracle.Cloud.Mobile.Synchronization.PCL.dll) Version: 16.1.3.1 (16.1.3.1)
Syntaxpublic abstract HttpClient CreateHttpClient(
SyncPolicy policy = null
)
Public MustOverride Function CreateHttpClient (
Optional policy As SyncPolicy = Nothing
) As HttpClient
public:
virtual HttpClient^ CreateHttpClient(
SyncPolicy^ policy = nullptr
) abstract
abstract CreateHttpClient :
?policy : SyncPolicy
(* Defaults:
let _policy = defaultArg policy null
*)
-> HttpClient
Parameters
- policy (Optional)
- Type: Oracle.Cloud.Mobile.SynchronizationSyncPolicy
Optional SyncPolicy to use. If specified the HttpClient should have the HttpSyncMessageHandler
set with the provided policy. If policy is null the HttpSyncMessageHandler should not be used.
Return Value
Type:
HttpClientAn HttpClient instance.
See Also