OnlineDataServiceAsync

@available(swift 5.5)
open class OnlineDataServiceAsync : DataServiceAsync

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

    provider

    Online provider.

  • (Asynchronous) If this data service requires a security token, then acquire it now.

    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 throws

    Parameters

    requestID

    Repeatability-Request-ID header value used in previous repeatable request.

    headers

    Optional request-specific headers.

    options

    Optional 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 throws

    Parameters

    requestIDs

    List of request IDs, or nil if Repeatability-Client-ID header value was used in previous repeatable requests, and for improved efficiency the bulk deletion of repeatable requests can be enabled using ServiceOptions.repeatabilityClientID.

    headers

    Optional request-specific headers.

    options

    Optional 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 }