public InstalledApplication LoadInstallConfigFromStream(Stream istrm)
{
try
{
using (XmlTextReader reader = new XmlTextReader(istrm))
{
DataContractSerializer serializer = new DataContractSerializer(typeof(InstalledApplication));
return (InstalledApplication)serializer.ReadObject(reader, false);
}
}
catch (Exception e)
{
throw ServiceResultException.Create(StatusCodes.BadDecodingError, e, "Could not parse install configuration.");
}
}