public DroneClient() { _NavigationDataViewModel = new ViewModel.NavigationDataViewModel(); _configuration = new DroneConfiguration(); _CommandWorker = new CommandWorker(this); _NavDataWorker = new NavDataWorker(this); _ConfigurationWorker = new ConfigurationWorker(this); //TODO ajouter le _configurationAcquisitionWorker _WatchdogWorker = new WatchdogWorker(this, new WorkerBase[] { _NavDataWorker, _CommandWorker }); _InputTimer = ThreadPoolTimer.CreatePeriodicTimer(new TimerElapsedHandler(InputTimerElapsedHandler), TimeSpan.FromMilliseconds(1000 / 12)); }
private void ConfigureThreads() { EndpointConnectWorker = new EndpointConnectWorker(this); HeartbeatWorker = new HeartbeatWorker(this); ConnectionStatusWorker = new ConnectionStatusWorker(this); SystemStatusWorker = new SystemStatusWorker(this); ReportStatusWorker = new ReportStatusWorker(this); VersionUpgradeWorker = new VersionUpgradeWorker(this); ConfigurationWorker = new ConfigurationWorker(this); FolderStatsWorker = new FolderStatsWorker(this); FolderModelWorker = new FolderModelWorker(this); // Connection monitoring events will be processed by this manager, // all other workers will enrich the information nodes themself. EndpointConnectWorker.Executed += OnEndpointConnectStatusReceived; HeartbeatWorker.Executed += OnHeartbeatReceived; }
public ConfigurationController(DataFactory dataFactory) { _configurationWorker = (ConfigurationWorker)dataFactory.GetDataFactory <Configuration>(); }