C# Class Elastacloud.AzureManagement.Fluent.Commands.Parsers.BaseParser

Base class used to parse all XML responses from the fabric
Mostra file Open project: azurecoder/fluent-management Class Usage Examples

Protected Properties

Property Type Description
Document System.Xml.Linq.XDocument

Private Properties

Property Type Description
BaseParser System
Parse void

Public Methods

Method Description
GetInstance ( HttpWebResponse response, string rootVerb, BaseParser parser = null ) : BaseParser

Gets an instance of the BaseParser type to use and parse response - implementation of CoR pattern

Protected Methods

Method Description
GetSchema ( ) : System.Xml.Linq.XNamespace

Overriden in derived classes with the schema value of the operation and response

Private Methods

Method Description
BaseParser ( System.Xml.Linq.XDocument response ) : System

To construct the BaseParser

Parse ( ) : void

Must implement in a derived class since this needs Xml specific parse code

Method Details

GetInstance() public static method

Gets an instance of the BaseParser type to use and parse response - implementation of CoR pattern
public static GetInstance ( HttpWebResponse response, string rootVerb, BaseParser parser = null ) : BaseParser
response System.Net.HttpWebResponse
rootVerb string
parser BaseParser
return BaseParser

GetSchema() protected abstract method

Overriden in derived classes with the schema value of the operation and response
protected abstract GetSchema ( ) : System.Xml.Linq.XNamespace
return System.Xml.Linq.XNamespace

Property Details

Document protected_oe property

The Xml document returned and being parsed
protected XDocument,System.Xml.Linq Document
return System.Xml.Linq.XDocument