internal override void Parse()
        {
            Properties = new ScaleSettings();

            XNamespace serialisationNamespace = SerialisationNamespace;
            XElement rootElements = Document.Element(GetSchema() + "ScaleSettings");
            // get the compute modefrom the instance
            if (rootElements.Element(GetSchema() + "Tier") != null)
            {
                Properties.ComputeMode =
                    (ComputeMode)
                    Enum.Parse(typeof (ComputeMode), rootElements.Element(GetSchema() + "Tier").Value, true);
            }
            // test to see whether the sitehas been enabled
            if (rootElements.Element(GetSchema() + "NumberOfInstances") != null)
            {
                Properties.InstanceCount = int.Parse(rootElements.Element(GetSchema() + "NumberOfInstances").Value);
            }

            CommandResponse = Properties;
        }
        // TODO: parse the response on the way back
        protected override void ResponseCallback(System.Net.HttpWebResponse webResponse)
        {
            ScaleSettings = Parse(webResponse, BaseParser.GetMobileServiceDetailsParser, new GetMobileServicesScaleParser(null));

            SitAndWait.Set();
        }
 /// <summary>
 /// Used to construct a website parser
 /// </summary>
 /// <param name="document"></param>
 public GetMobileServicesScaleParser(XDocument document)
     : base(document)
 {
     CommandResponse = new ScaleSettings();
 }