/// <summary> /// Used to get and instance of the BaseParser that will parse the Xml response from the Fabric /// </summary> /// <param name="response">the HttpWebResponse that is returned</param> /// <param name="root">the root element neededs</param> /// <param name="baseParser">used to parse the response coming back</param> /// <returns>A dynamic type based on the expected return</returns> public static dynamic Parse(HttpWebResponse response, string root, BaseParser baseParser = null) { BaseParser parser = BaseParser.GetInstance(response, root, baseParser); parser.Parse(); return(parser.CommandResponse); }