public void LoadContentFor(SensitivityAnalysis sensitivityAnalysis) { var content = _sensitivityAnalysisMetaDataContentQuery.ResultFor(sensitivityAnalysis.Id); if (content?.Data == null) { return; } _compressedSerializationManager.Deserialize(sensitivityAnalysis, content.Data); }
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); } }