Class ConfigurationServiceBase<T>
Inheritance
System.Object
ConfigurationServiceBase<T>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: mix.heart.dll
Syntax
public class ConfigurationServiceBase<T>
Type Parameters
Constructors
|
Improve this Doc
View Source
ConfigurationServiceBase(String)
Declaration
public ConfigurationServiceBase(string filePath)
Parameters
Type |
Name |
Description |
System.String |
filePath |
|
|
Improve this Doc
View Source
ConfigurationServiceBase(String, Boolean)
Declaration
public ConfigurationServiceBase(string filePath, bool isEncrypt)
Parameters
Type |
Name |
Description |
System.String |
filePath |
|
System.Boolean |
isEncrypt |
|
Fields
|
Improve this Doc
View Source
_isEncrypt
Declaration
protected bool _isEncrypt
Field Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
watcher
Declaration
protected readonly FileSystemWatcher watcher
Field Value
Type |
Description |
System.IO.FileSystemWatcher |
|
Properties
|
Improve this Doc
View Source
AesKey
Declaration
public string AesKey { get; set; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
AppSettings
Declaration
public T AppSettings { get; set; }
Property Value
|
Improve this Doc
View Source
FilePath
Declaration
protected string FilePath { get; set; }
Property Value
Type |
Description |
System.String |
|
Methods
|
Improve this Doc
View Source
GetConfig<TValue>(String, TValue)
Declaration
public TValue GetConfig<TValue>(string name, TValue defaultValue = null)
Parameters
Type |
Name |
Description |
System.String |
name |
|
TValue |
defaultValue |
|
Returns
Type Parameters
|
Improve this Doc
View Source
GetConfig<TValue>(String, String, TValue)
Declaration
public TValue GetConfig<TValue>(string culture, string name, TValue defaultValue = null)
Parameters
Type |
Name |
Description |
System.String |
culture |
|
System.String |
name |
|
TValue |
defaultValue |
|
Returns
Type Parameters
|
Improve this Doc
View Source
GetEnumConfig<TValue>(String)
Declaration
public TValue GetEnumConfig<TValue>(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
|
Returns
Type Parameters
|
Improve this Doc
View Source
LoadAppSettings()
Declaration
protected virtual void LoadAppSettings()
|
Improve this Doc
View Source
SaveSettings()
Declaration
public bool SaveSettings()
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
SetConfig<TValue>(String, TValue)
Declaration
public void SetConfig<TValue>(string name, TValue value)
Parameters
Type |
Name |
Description |
System.String |
name |
|
TValue |
value |
|
Type Parameters
|
Improve this Doc
View Source
SetConfig<TValue>(String, String, TValue)
Declaration
public void SetConfig<TValue>(string culture, string name, TValue value)
Parameters
Type |
Name |
Description |
System.String |
culture |
|
System.String |
name |
|
TValue |
value |
|
Type Parameters
|
Improve this Doc
View Source
WatchFile()
Declaration
protected void WatchFile()