OnlineDataService
open class OnlineDataService : DataService, @unchecked Sendable
A specialization of DataService where the provider is an OnlineODataProvider.
-
Construct an online data service using an online provider.
Declaration
Swift
public init(provider: OnlineODataProvider)Parameters
providerOnline provider.
-
If this data service requires a security token, then acquire it now.
See also
ServiceOptions.requiresToken.Declaration
Swift
open func acquireToken() throws -
(Asynchronous) If this data service requires a security token, then acquire it now.
See also
ServiceOptions.requiresToken.Declaration
Swift
open func acquireToken(completionHandler: @Sendable @escaping (Result<Void, Error>) -> Void) -
Ask the server to forget (delete) the repeatable request with the specified
requestID.Declaration
Swift
open func deleteRepeatableRequest(requestID: GuidValue, headers: HTTPHeaders, options: RequestOptions) 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 request with the specified
requestID.Declaration
Swift
open func deleteRepeatableRequest(requestID: GuidValue, headers: HTTPHeaders, options: RequestOptions, completionHandler: @Sendable @escaping (Result<Void, Error>) -> Void)Parameters
requestIDRepeatability-Request-ID header value used in previous repeatable request.
headersOptional request-specific headers.
optionsOptional request-specific options.
-
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) 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.
-
(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, completionHandler: @Sendable @escaping (Result<Void, Error>) -> Void)Parameters
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 }