| 35 | namespace tc { |
| 36 | |
| 37 | PluginNetEventRouter::PluginNetEventRouter(const std::shared_ptr<RdApplication>& app) { |
| 38 | this->app_ = app; |
| 39 | this->context_ = app->GetContext(); |
| 40 | this->plugin_manager_ = app->GetPluginManager(); |
| 41 | this->settings_ = RdSettings::Instance(); |
| 42 | this->statistics_ = RdStatistics::Instance(); |
| 43 | |
| 44 | msg_notifier_ = this->app_->GetContext()->GetMessageNotifier(); |
| 45 | msg_listener_ = this->app_->GetContext()->GetMessageNotifier()->CreateListener(); |
| 46 | msg_listener_->Listen<CaptureMonitorInfoMessage>([=, this](const CaptureMonitorInfoMessage& msg) { |
| 47 | if (auto plugin = plugin_manager_->GetEventsReplayerPlugin(); plugin) { |
| 48 | plugin->UpdateCaptureMonitorInfo(msg); |
| 49 | } |
| 50 | }); |
| 51 | } |
| 52 | |
| 53 | void PluginNetEventRouter::ProcessClientConnectedEvent(const std::shared_ptr<GrPluginClientConnectedEvent>& event) { |
| 54 | // has no effects in plugin mode |
nothing calls this directly
no test coverage detected