C# 클래스 Elastacloud.AzureManagement.Fluent.Types.CscfgFile

Used to encapsulate a .cscfg file and be able to pull properties from it
상속: ConfigurationFile
파일 보기 프로젝트 열기: azurecoder/fluent-management 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Instance ConfigurationFile

공개 메소드들

메소드 설명
DoesSettingExist ( string settingName, int roleIndex = 1 ) : bool

Checks to see whether a particular setting exists in the roleset

GetAdHocInstance ( System.Xml.Linq.XDocument doc ) : CscfgFile

Used to get an ad-hoc reference to the .cscfg file to parse out the settings

GetInstance ( string name ) : ConfigurationFile

Singleton for the file

GetInstanceCountForRole ( string roleName ) : int

Gets the instance count for a particular role name

GetRoleNameList ( ) : List

Gets a list of role names from the .cscfg file

GetSettingForRole ( string settingName, string roleName ) : string

Gets a setting value for a role given a rolename and settings name

GetSettingWithoutRole ( string settingName ) : string

Returns a setting without needing to have a role to look up

SetInstanceCountForRole ( string roleName, int instanceCount ) : void

Sets an instance count attribute value for a particular role

UpdateSettingForRole ( string settingName, string settingValue, string roleName ) : void

Updates an existing setting for a role with the predetermined value

보호된 메소드들

메소드 설명
GetFileExtension ( ) : string

Used to get the file instance

비공개 메소드들

메소드 설명
CscfgFile ( System.Xml.Linq.XDocument doc ) : System.Collections.Generic

Used to generate ad-hoc instances of the .cscfg file

CscfgFile ( string name ) : System.Collections.Generic

Default constructor used to load and find the file

GetInstanceCountElementForRole ( string roleName ) : System.Xml.Linq.XElement

Gets the instance count for the role

GetSetting ( string settingName ) : System.Xml.Linq.XElement

Checks to see whether a particular setting exists in the roleset

메소드 상세

DoesSettingExist() 공개 메소드

Checks to see whether a particular setting exists in the roleset
public DoesSettingExist ( string settingName, int roleIndex = 1 ) : bool
settingName string The name of the setting being checked
roleIndex int Not implemented but can be used to go to a particular role index based on the order of the XML Cscfg file
리턴 bool

GetAdHocInstance() 공개 정적인 메소드

Used to get an ad-hoc reference to the .cscfg file to parse out the settings
public static GetAdHocInstance ( System.Xml.Linq.XDocument doc ) : CscfgFile
doc System.Xml.Linq.XDocument
리턴 CscfgFile

GetFileExtension() 보호된 메소드

Used to get the file instance
protected GetFileExtension ( ) : string
리턴 string

GetInstance() 공개 정적인 메소드

Singleton for the file
public static GetInstance ( string name ) : ConfigurationFile
name string
리턴 ConfigurationFile

GetInstanceCountForRole() 공개 메소드

Gets the instance count for a particular role name
public GetInstanceCountForRole ( string roleName ) : int
roleName string
리턴 int

GetRoleNameList() 공개 메소드

Gets a list of role names from the .cscfg file
public GetRoleNameList ( ) : List
리턴 List

GetSettingForRole() 공개 메소드

Gets a setting value for a role given a rolename and settings name
public GetSettingForRole ( string settingName, string roleName ) : string
settingName string
roleName string
리턴 string

GetSettingWithoutRole() 공개 메소드

Returns a setting without needing to have a role to look up
public GetSettingWithoutRole ( string settingName ) : string
settingName string The name of the setting
리턴 string

SetInstanceCountForRole() 공개 메소드

Sets an instance count attribute value for a particular role
public SetInstanceCountForRole ( string roleName, int instanceCount ) : void
roleName string the name of the role
instanceCount int the number of instance of the role
리턴 void

UpdateSettingForRole() 공개 메소드

Updates an existing setting for a role with the predetermined value
public UpdateSettingForRole ( string settingName, string settingValue, string roleName ) : void
settingName string
settingValue string
roleName string
리턴 void

프로퍼티 상세

Instance 공개적으로 정적으로 프로퍼티

The single instance of the file
public static ConfigurationFile,Elastacloud.AzureManagement.Fluent.Types Instance
리턴 ConfigurationFile