void PersistBinaryDataList(DebugTO to)
{
DebugTO tmp = null;
try
{
if (_debugPersistSettings.TryGetValue(to.WorkflowID, out tmp))
{
to.XmlData = tmp.RememberInputs ? tmp.XmlData : (to.XmlData ?? "<DataList></DataList>");
tmp.CleanUp();
}
else
{
to.XmlData = to.RememberInputs ? to.XmlData : "<DataList></DataList>";
}
to.BinaryDataList = new DataListModel();
to.BinaryDataList.Create(to.XmlData, to.DataList);
}
finally
{
tmp?.CleanUp();
}
}