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.
See also
ServiceOptions.requiresToken
.Declaration
Swift
open func acquireToken() async throws
-
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 }