internal static Task <ServiceProperties> ReadServicePropertiesAsync(Stream inputStream) { using (XmlReader reader = XmlReader.Create(inputStream)) { return(ServiceProperties.FromServiceXmlAsync(XDocument.Load(reader))); } }