ServiceLocatorType
public protocol ServiceLocatorType
Start lookup DNS for retrieving endpoint URLs of various ePA gateway services. Once lookup has been done successfully, endpoint URLs for interfaces in ServiceInterfaceName can be retrieved.
-
start a new DNS lookup and provides a callback, to be called once finished
Declaration
Swift
func lookup(name: FullyQualifiedDomainName, queue: DispatchQueue, callbackQueue: DispatchQueue, callback: @escaping (LookupStatus) -> Void)
Parameters
name
fully qualified domain name of ePA Electronic Health Record (EHR) system. the fqdn is used for DNS lookup in order to complete URLs for the various gateway services for the EHR system
queue
lookup processing queue
callbackQueue
callback will be called on callbackQueue
callback
callback provided in order to get informed once lookup has been finished