12 auto promise = std::make_shared<std::promise<std::string>>();
13 auto future = promise->get_future();
15 link->getConnection()->setHeaderReceivedCallback(
17 std::string serviceType;
18 if (header.
getValue(
"type", serviceType)) {
19 promise->set_value(serviceType);
21 promise->set_exception(std::make_exception_ptr(
22 std::runtime_error(
"Key 'type' not found in service connection header")));
std::future< std::string > retrieveServiceType(const std::string &serviceName)
static const ServiceManagerPtr & instance()