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

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

Protected Properties

Свойство Type Description
Document System.Xml.Linq.XDocument

Private Properties

Свойство Type Description
BaseParser System
Parse void

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
GetSchema ( ) : System.Xml.Linq.XNamespace

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

Private Methods

Méthode 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 méthode

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
Résultat BaseParser

GetSchema() protected abstract méthode

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

Property Details

Document protected_oe property

The Xml document returned and being parsed
protected XDocument,System.Xml.Linq Document
Résultat System.Xml.Linq.XDocument