OnlineDataServiceAsync
@available(swift 5.5)
open class OnlineDataServiceAsync : DataServiceAsync, @unchecked Sendable
An specialization of DataService where the provider is an OnlineODataProvider, using the async/await style of asynchronous operations.
-
Construct an online data service using an online provider.
Declaration
Swift
public init(provider: OnlineODataProvider)Parameters
providerOnline provider.
-
(Asynchronous) If this data service requires a security token, then acquire it now.
See also
ServiceOptions.requiresToken.Declaration
Swift
open func acquireToken() async throws -
(Asynchronous) Ask the server to forget (delete) the repeatable request with the specified
requestID.Declaration
Swift
open func deleteRepeatableRequest(requestID: GuidValue, headers: HTTPHeaders, options: RequestOptions) async throwsParameters
requestIDRepeatability-Request-ID header value used in previous repeatable request.
headersOptional request-specific headers.
optionsOptional request-specific options.
-
(Asynchronous) Ask the server to forget (delete) the repeatable requests with the specified
requestIDs.Declaration
Swift
open func deleteRepeatableRequests(requestIDs: GuidValueList? = nil, headers: HTTPHeaders? = nil, options: RequestOptions? = nil) async throwsParameters
requestIDsList of request IDs, or
nilif Repeatability-Client-ID header value was used in previous repeatable requests, and for improved efficiency the bulk deletion of repeatable requests can be enabled usingServiceOptions.repeatabilityClientID.headersOptional request-specific headers.
optionsOptional request-specific options.
-
The online provider supporting this data service.
Declaration
Swift
open var onlineProvider: OnlineODataProvider { get } -
Service options for the associated online provider.
Declaration
Swift
open var serviceOptions: ServiceOptions { get }