コード例 #1
0
        private async Task exportSimulationPkmlAsync(Simulation simulation, string outputFolder, string projectName)
        {
            var fileName = pathUnder(outputFolder, simulation.Name, Constants.Filter.PKML_EXTENSION, projectName);
            await _moBiExportTask.SaveSimulationToFileAsync(simulation, fileName);

            _logger.AddDebug($"Exporting simulation pkml to '{fileName}'");
        }
コード例 #2
0
        private Task exportSimulationToPkml(DirectoryInfo directoryInfo, string projectName, IndividualSimulation simulation)
        {
            _logger.AddDebug($"Exporting simulation to pkml format '{simulation.Name}'");
            var fileName = createFileName(directoryInfo, projectName, simulation, Constants.Filter.PKML_EXTENSION);

            return(_moBiExportTask.SaveSimulationToFileAsync(simulation, fileName));
        }