public void LoadContentFor(SensitivityAnalysis sensitivityAnalysis)
        {
            var content = _sensitivityAnalysisMetaDataContentQuery.ResultFor(sensitivityAnalysis.Id);

            if (content?.Data == null)
            {
                return;
            }

            _compressedSerializationManager.Deserialize(sensitivityAnalysis, content.Data);
        }
Ejemplo n.º 2
0
        public void LoadContentFor(SensitivityAnalysis sensitivityAnalysis)
        {
            var content = _sensitivityAnalysisMetaDataContentQuery.ResultFor(sensitivityAnalysis.Id);

            if (content?.Data == null)
            {
                return;
            }

            using (var context = _serializationContextFactory.Create(externalReferences: _projectRetriever.CurrentProject.All <ISimulation>()))
            {
                _compressedSerializationManager.Deserialize(sensitivityAnalysis, content.Data, context);
            }
        }