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
51a4f062
Commit
51a4f062
authored
7 years ago
by
Niko Ehrenfeuchter
Browse files
Options
Downloads
Patches
Plain Diff
Move assembly of paths into LoadConfigXml.
parent
93636260
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
AutoTx/AutoTx.cs
+4
-10
4 additions, 10 deletions
AutoTx/AutoTx.cs
with
4 additions
and
10 deletions
AutoTx/AutoTx.cs
+
4
−
10
View file @
51a4f062
...
...
@@ -125,6 +125,8 @@ namespace AutoTx
private
void
LoadConfigXml
()
{
try
{
_config
=
ServiceConfig
.
Deserialize
(
_configPath
);
_incomingPath
=
Path
.
Combine
(
_config
.
SourceDrive
,
_config
.
IncomingDirectory
);
_managedPath
=
Path
.
Combine
(
_config
.
SourceDrive
,
_config
.
ManagedDirectory
);
writeLogDebug
(
"Loaded config from "
+
_configPath
);
}
catch
(
ConfigurationErrorsException
ex
)
{
...
...
@@ -163,16 +165,8 @@ namespace AutoTx
/// </summary>
public
void
CheckConfiguration
()
{
var
configInvalid
=
false
;
try
{
_incomingPath
=
Path
.
Combine
(
_config
.
SourceDrive
,
_config
.
IncomingDirectory
);
_managedPath
=
Path
.
Combine
(
_config
.
SourceDrive
,
_config
.
ManagedDirectory
);
if
(
CheckSpoolingDirectories
()
==
false
)
{
writeLog
(
"ERROR checking spooling directories (incoming / managed)!"
);
configInvalid
=
true
;
}
}
catch
(
Exception
ex
)
{
writeLog
(
"Error in CheckConfiguration(): "
+
ex
.
Message
+
" "
+
ex
.
StackTrace
);
if
(
CheckSpoolingDirectories
()
==
false
)
{
writeLog
(
"ERROR checking spooling directories (incoming / managed)!"
);
configInvalid
=
true
;
}
...
...
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