22 public std::enable_shared_from_this<PollingDataSource> {
29 boost::asio::any_io_executor ioc,
33 Logger
const& logger);
35 void Start()
override;
36 void ShutdownAsync(std::function<
void()>)
override;
40 void HandlePollResult(network::HttpResult res);
42 std::string string_context_;
45 std::string polling_endpoint_;
47 network::AsioRequester requester_;
48 Logger
const& logger_;
49 boost::asio::any_io_executor ioc_;
50 std::chrono::seconds polling_interval_;
51 network::HttpRequest request_;
52 std::optional<std::string> etag_;
54 boost::asio::steady_timer timer_;
55 std::chrono::time_point<std::chrono::system_clock> last_poll_start_;
57 void StartPollingTimer();
Definition context.hpp:29