| 27 | } |
| 28 | |
| 29 | Dictionary::Ptr ServiceNameComposer::ParseName(const String& name) const |
| 30 | { |
| 31 | std::vector<String> tokens = name.Split("!"); |
| 32 | |
| 33 | if (tokens.size() < 2) |
| 34 | BOOST_THROW_EXCEPTION(std::invalid_argument("Invalid Service name.")); |
| 35 | |
| 36 | return new Dictionary({ |
| 37 | { "host_name", tokens[0] }, |
| 38 | { "name", tokens[1] } |
| 39 | }); |
| 40 | } |
| 41 | |
| 42 | void Service::OnAllConfigLoaded() |
| 43 | { |
no test coverage detected