| 12 | namespace Asio { |
| 13 | |
| 14 | Timer::Timer(const std::shared_ptr<Service>& service) |
| 15 | : _service(service), |
| 16 | _io_context(_service->GetAsioContext()), |
| 17 | _strand(*_io_context), |
| 18 | _strand_required(_service->IsStrandRequired()), |
| 19 | _timer(*_io_context) |
| 20 | { |
| 21 | assert((service != nullptr) && "Asio service is invalid!"); |
| 22 | if (service == nullptr) |
| 23 | throw CppCommon::ArgumentException("Asio service is invalid!"); |
| 24 | } |
| 25 | |
| 26 | Timer::Timer(const std::shared_ptr<Service>& service, const CppCommon::UtcTime& time) |
| 27 | : _service(service), |
nothing calls this directly
no test coverage detected