Skip to content
Snippets Groups Projects
Commit 54ee935c authored by Niko Ehrenfeuchter's avatar Niko Ehrenfeuchter :keyboard:
Browse files

Add support for HealthReportEmailAddress configuration option

Relates to #20
parent 4a4ea4de
No related branches found
No related tags found
No related merge requests found
......@@ -17,6 +17,8 @@ namespace ATxCommon.Serializables
{
private static readonly Logger Log = LogManager.GetCurrentClassLogger();
private string _healthReportEmailAddress;
#region required configuration parameters
......@@ -200,6 +202,20 @@ namespace ATxCommon.Serializables
/// </summary>
public string AdminDebugEmailAddress { get; set; }
/// <summary>
/// The mail recipient address for system health reports, falling back to AdminEmailAddress
/// in case it is not set explicitly.
/// </summary>
public string HealthReportEmailAddress {
get {
if (string.IsNullOrEmpty(_healthReportEmailAddress))
return AdminEmailAddress;
return _healthReportEmailAddress;
}
set => _healthReportEmailAddress = value;
}
/// <summary>
/// Send an email to the user upon completed transfers. Default: true.
/// </summary>
......
......@@ -100,6 +100,10 @@
messages to, e.g. on completed transfers -->
<AdminDebugEmailAddress>admin@mydomain.xy</AdminDebugEmailAddress>
<!-- HealthReportEmailAddress: an email address where to send system health
reports to, falling back to AdminEmailAddress if empty -->
<HealthReportEmailAddress>admin@mydomain.xy</HealthReportEmailAddress>
<!-- SendTransferNotification: send email to user on finished transfers -->
<SendTransferNotification>true</SendTransferNotification>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment