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
a6a4aafa
Commit
a6a4aafa
authored
5 years ago
by
Niko Ehrenfeuchter
Browse files
Options
Downloads
Patches
Plain Diff
Use a proper docstring for the TxState enum
parent
e12660cc
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ATxService/AutoTx.cs
+15
-12
15 additions, 12 deletions
ATxService/AutoTx.cs
with
15 additions
and
12 deletions
ATxService/AutoTx.cs
+
15
−
12
View file @
a6a4aafa
...
...
@@ -73,24 +73,27 @@ namespace ATxService
private
DateTime
_lastUserDirCheck
=
DateTime
.
MinValue
;
// the transfer state:
/// <summary>
/// The transfer state, one of "Stopped", "Active", "Paused" or "DoNothing".
///
/// Stopped: The last transfer was finished successfully or none was started yet. A new
/// transfer MAY ONLY BE STARTED if the service is in this state.
///
/// Active: A transfer is currently running (i.e. new transfers MUST NOT be started).
///
/// Paused: Assigned in PauseTransfer() which gets called from within RunMainTasks()
/// when system parameters are not in their valid range. It gets evaluated if
/// the parameters return to valid or if no user is logged on any more.
///
/// DoNothing: Assigned when the service gets shut down (in the OnStop() method) to prevent
/// accidentially launching new transfers or doing other tasks.
/// </summary>
private
enum
TxState
{
Stopped
=
0
,
// Stopped: the last transfer was finished successfully or none was started yet.
// A new transfer may only be started if the service is in this state.
Active
=
1
,
// Active: a transfer is currently running (i.e. no new transfer may be started).
Paused
=
2
,
// Paused is assigned in PauseTransfer() which gets called from within RunMainTasks()
// when system parameters are not in their valid range. It gets evaluated if the
// parameters return to valid or if no user is logged on any more.
DoNothing
=
3
// DoNothing is assigned when the service gets shut down (in the OnStop() method)
// to prevent accidentially launching new transfers etc.
}
private
TxState
_transferState
=
TxState
.
Stopped
;
...
...
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