Свойство | Type | Description | |
---|---|---|---|
Instance |
Méthode | Description | |
---|---|---|
DoesSettingExist ( string settingName, int roleIndex = 1 ) : bool |
Checks to see whether a particular setting exists in the roleset
|
|
GetAdHocInstance ( System.Xml.Linq.XDocument doc ) : |
Used to get an ad-hoc reference to the .cscfg file to parse out the settings
|
|
GetInstance ( string name ) : |
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
|
Méthode | Description | |
---|---|---|
GetFileExtension ( ) : string |
Used to get the file instance
|
Méthode | Description | |
---|---|---|
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
|
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 |
Résultat | bool |
public static GetAdHocInstance ( System.Xml.Linq.XDocument doc ) : |
||
doc | System.Xml.Linq.XDocument | |
Résultat |
public static GetInstance ( string name ) : |
||
name | string | |
Résultat |
public GetInstanceCountForRole ( string roleName ) : int | ||
roleName | string | |
Résultat | int |
public GetSettingForRole ( string settingName, string roleName ) : string | ||
settingName | string | |
roleName | string | |
Résultat | string |
public GetSettingWithoutRole ( string settingName ) : string | ||
settingName | string | The name of the setting |
Résultat | string |
public SetInstanceCountForRole ( string roleName, int instanceCount ) : void | ||
roleName | string | the name of the role |
instanceCount | int | the number of instance of the role |
Résultat | void |
public UpdateSettingForRole ( string settingName, string settingValue, string roleName ) : void | ||
settingName | string | |
settingValue | string | |
roleName | string | |
Résultat | void |