Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
auto-tx
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
vamp
auto-tx
Commits
54ee935c
Commit
54ee935c
authored
6 years ago
by
Niko Ehrenfeuchter
Browse files
Options
Downloads
Patches
Plain Diff
Add support for HealthReportEmailAddress configuration option
Relates to
#20
parent
4a4ea4de
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ATxCommon/Serializables/ServiceConfig.cs
+16
-0
16 additions, 0 deletions
ATxCommon/Serializables/ServiceConfig.cs
Resources/conf/config.common.xml
+4
-0
4 additions, 0 deletions
Resources/conf/config.common.xml
with
20 additions
and
0 deletions
ATxCommon/Serializables/ServiceConfig.cs
+
16
−
0
View file @
54ee935c
...
...
@@ -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>
...
...
This diff is collapsed.
Click to expand it.
Resources/conf/config.common.xml
+
4
−
0
View file @
54ee935c
...
...
@@ -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>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment