Hermod
A cross-platform, modular and fully GDPR-compliant email archival solution!
Loading...
Searching...
No Matches
Hermod.Config.ConfigChangedEventArgs Class Reference

Event arguments for when a configuration has changed. More...

Inheritance diagram for Hermod.Config.ConfigChangedEventArgs:

Public Member Functions

 ConfigChangedEventArgs ()
 
 ConfigChangedEventArgs (string configName, object? oldCfgVal, object? newCfgVal, Type newCfgType)
 

Properties

string ConfigName [get, set]
 The name of the configuration that was changed.
 
object? OldConfigValue [get, set]
 The old config value, boxed to an object.
 
object? NewConfigValue [get, set]
 The new config value, boxed to an object.
 
Type ConfigType [get, set]
 The type the new configuration value has.
 

Detailed Description

Event arguments for when a configuration has changed.

Definition at line 10 of file IConfigChanged.cs.

Constructor & Destructor Documentation

◆ ConfigChangedEventArgs() [1/2]

Hermod.Config.ConfigChangedEventArgs.ConfigChangedEventArgs ( )
inline

Definition at line 32 of file IConfigChanged.cs.

32: this(string.Empty, default, default, typeof(object)) { }

◆ ConfigChangedEventArgs() [2/2]

Hermod.Config.ConfigChangedEventArgs.ConfigChangedEventArgs ( string  configName,
object?  oldCfgVal,
object?  newCfgVal,
Type  newCfgType 
)
inline

Definition at line 34 of file IConfigChanged.cs.

34 {
35 ConfigName = configName;
36 OldConfigValue = oldCfgVal;
37 NewConfigValue = newCfgVal;
38 ConfigType = newCfgType;
39 }
Type ConfigType
The type the new configuration value has.
string ConfigName
The name of the configuration that was changed.
object? OldConfigValue
The old config value, boxed to an object.
object? NewConfigValue
The new config value, boxed to an object.

References Hermod.Config.ConfigChangedEventArgs.ConfigName, Hermod.Config.ConfigChangedEventArgs.ConfigType, Hermod.Config.ConfigChangedEventArgs.NewConfigValue, and Hermod.Config.ConfigChangedEventArgs.OldConfigValue.

Property Documentation

◆ ConfigName

string Hermod.Config.ConfigChangedEventArgs.ConfigName
getset

The name of the configuration that was changed.

Definition at line 15 of file IConfigChanged.cs.

15{ get; set; }

Referenced by Hermod.Config.ConfigChangedEventArgs.ConfigChangedEventArgs().

◆ ConfigType

Type Hermod.Config.ConfigChangedEventArgs.ConfigType
getset

The type the new configuration value has.

Definition at line 30 of file IConfigChanged.cs.

30{ get; set; }

Referenced by Hermod.Config.ConfigChangedEventArgs.ConfigChangedEventArgs().

◆ NewConfigValue

object? Hermod.Config.ConfigChangedEventArgs.NewConfigValue
getset

The new config value, boxed to an object.

Definition at line 25 of file IConfigChanged.cs.

25{ get; set; }

Referenced by Hermod.Config.ConfigChangedEventArgs.ConfigChangedEventArgs().

◆ OldConfigValue

object? Hermod.Config.ConfigChangedEventArgs.OldConfigValue
getset

The old config value, boxed to an object.

Definition at line 20 of file IConfigChanged.cs.

20{ get; set; }

Referenced by Hermod.Config.ConfigChangedEventArgs.ConfigChangedEventArgs().


The documentation for this class was generated from the following file: