public InternalDroneConfiguration GetDroneConfiguration() { Connect(); String configText = GetConfigText(); List <InternalDroneConfigurationState> configStates = configReader.GetConfigValues(configText); var droneConfig = new InternalDroneConfiguration(); droneConfig.DetermineInternalConfiguration(configStates); return(droneConfig); }
protected override void ProcessWorkerThread() { ConnectClientAndCreateStream(); do { String currentMessage = ReadStreamData(stream); if (currentMessage != null) { currentConfiguration.DetermineInternalConfiguration(currentMessage); } }while (!workerThreadEnded); }