SynchronizationCreateHttpHandler Method (SyncPolicy) |
Creates a new instance of HttpMessageHandler that callers can use with an HttpClient object of enabling caching and Synchronization capabilities.
The Sync handler is non-delegating and the last in the chain. It will automatically use the Diagnostics and Authorization handlers so callers shouldn't add
those to the chain.
Namespace: Oracle.Cloud.Mobile.SynchronizationAssembly: Oracle.Cloud.Mobile (in Oracle.Cloud.Mobile.dll) Version: 16.1.3.1 (16.1.3.1)
Syntaxpublic HttpMessageHandler CreateHttpHandler(
SyncPolicy policy
)
Public Function CreateHttpHandler (
policy As SyncPolicy
) As HttpMessageHandler
public:
HttpMessageHandler^ CreateHttpHandler(
SyncPolicy^ policy
)
member CreateHttpHandler :
policy : SyncPolicy -> HttpMessageHandler
Parameters
- policy
- Type: Oracle.Cloud.Mobile.SynchronizationSyncPolicy
The SyncPolicy to use. Optional, if omitted then any SyncPolicy that matches from config will be used or the
default SyncPolicy will be used.
Return Value
Type:
HttpMessageHandlerAn object that implements HttpMessageHandler.
See Also