C# Class Elastacloud.AzureManagement.Fluent.Types.ConfigurationFile

Abstract base class used for all types of configuration file
Afficher le fichier Open project: azurecoder/fluent-management Class Usage Examples

Méthodes publiques

Méthode Description
PersistConfigurationFile ( ConfigurationFileType type ) : void

persists the configuration file to a well known location

RollbackConfigurationFile ( ) : void

Deletes and replaces the configuration - i.e. restores it back to the point it was at beforehand

SaveAs ( string filePath ) : void

Saves the updated version of the Xml document

ToString ( ) : string

Used to return the Xml representation for the current configuration file

Méthodes protégées

Méthode Description
ConfigurationFile ( System.Xml.Linq.XDocument doc ) : System

Sets the default XMl document of the configuration file

ConfigurationFile ( string name ) : System

Creates a new instance of the class and checks to see whether the file exists and can be loaded

GetFileExtension ( ) : string

Abstract method returns the file extension

Private Methods

Méthode Description
CheckFileExistsAndLoadOriginalVersion ( ) : void

Checks to see whether the original file loads correctly and

Method Details

ConfigurationFile() protected méthode

Sets the default XMl document of the configuration file
protected ConfigurationFile ( System.Xml.Linq.XDocument doc ) : System
doc System.Xml.Linq.XDocument
Résultat System

ConfigurationFile() protected méthode

Creates a new instance of the class and checks to see whether the file exists and can be loaded
protected ConfigurationFile ( string name ) : System
name string
Résultat System

GetFileExtension() protected abstract méthode

Abstract method returns the file extension
protected abstract GetFileExtension ( ) : string
Résultat string

PersistConfigurationFile() public méthode

persists the configuration file to a well known location
public PersistConfigurationFile ( ConfigurationFileType type ) : void
type ConfigurationFileType
Résultat void

RollbackConfigurationFile() public méthode

Deletes and replaces the configuration - i.e. restores it back to the point it was at beforehand
public RollbackConfigurationFile ( ) : void
Résultat void

SaveAs() public méthode

Saves the updated version of the Xml document
public SaveAs ( string filePath ) : void
filePath string
Résultat void

ToString() public méthode

Used to return the Xml representation for the current configuration file
public ToString ( ) : string
Résultat string