Show / Hide Table of Contents

Class ConfigurationServiceBase<T>

Inheritance
System.Object
ConfigurationServiceBase<T>
DatabaseService
MixHeartConfigService
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()
Namespace: Mix.Heart.Services
Assembly: mix.heart.dll
Syntax
public class ConfigurationServiceBase<T>
Type Parameters
Name Description
T

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
Type Description
T
| 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 Description
TValue
Type Parameters
Name Description
TValue
| 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 Description
TValue
Type Parameters
Name Description
TValue
| Improve this Doc View Source

GetEnumConfig<TValue>(String)

Declaration
public TValue GetEnumConfig<TValue>(string name)
Parameters
Type Name Description
System.String name
Returns
Type Description
TValue
Type Parameters
Name Description
TValue
| 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
Name Description
TValue
| 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
Name Description
TValue
| Improve this Doc View Source

WatchFile()

Declaration
protected void WatchFile()
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾