Elastacloud.AzureManagement.Fluent.Commands.Services.ServiceCommand.Parse C# (CSharp) Method

Parse() public static method

Used to get and instance of the BaseParser that will parse the Xml response from the Fabric
public static Parse ( HttpWebResponse response, string root, BaseParser baseParser = null ) : dynamic
response System.Net.HttpWebResponse the HttpWebResponse that is returned
root string the root element neededs
baseParser Elastacloud.AzureManagement.Fluent.Commands.Parsers.BaseParser used to parse the response coming back
return dynamic
        public static dynamic Parse(HttpWebResponse response, string root, BaseParser baseParser = null)
        {
            BaseParser parser = BaseParser.GetInstance(response, root, baseParser);
            parser.Parse();
            return parser.CommandResponse;
        }