private void ApplyModelDiff(ModelResponse diff)
        {
            if (diff.IsFull)
            {
                m_model = new SimulationModel();
            }

            m_modelDiffApplier.ApplyModelDiff(m_model, diff);
        }
Exemplo n.º 2
0
        private Task ApplyModelDiffAsync(ModelResponse diff)
        {
            return(Task.Factory.StartNew(() =>
            {
                if (diff.IsFull)
                {
                    m_currentModel = new SimulationModel();
                }

                m_modelDiffApplier.ApplyModelDiff(m_currentModel, diff);
            }));
        }