Пример #1
0
 public Task <SimulationResults> RunAsync(SimulationRunArgs simulationRunArgs)
 {
     var(simulation, population, agingData, simulationRunOptions) = simulationRunArgs;
     return(population == null?
            runAsync(simulation, simulationRunOptions) :
                runAsync(simulation, population, agingData, simulationRunOptions));
 }
Пример #2
0
 public SimulationResults Run(SimulationRunArgs simulationRunArgs)
 {
     var(simulation, population, agingData, simulationRunOptions) = simulationRunArgs;
     if (population != null)
     {
         return(runAsync(simulation, population, agingData, simulationRunOptions).Result); //Not really without a task
     }
     return(run(simulation, simulationRunOptions));
 }