Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/duplicati/duplicati.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Hsu <kennethhsu@gmail.com>2018-12-08 23:33:24 +0300
committerKenneth Hsu <kennethhsu@gmail.com>2018-12-10 07:23:05 +0300
commit1764b9ad4e20d3d085cfb8f6cb1556981a023f43 (patch)
treead0349eec273079c2095f87d42b422b680ab6a5f /Duplicati/Server/Runner.cs
parente91e79e884ab91e3d609b22ac57c74ee4d51270e (diff)
Convert write-only IMessageSink.BackendProgress property to method.
Write-only properties are confusing and the behavior is better implemented as a method, which more clearly conveys the write-only semantics.
Diffstat (limited to 'Duplicati/Server/Runner.cs')
-rw-r--r--Duplicati/Server/Runner.cs15
1 files changed, 7 insertions, 8 deletions
diff --git a/Duplicati/Server/Runner.cs b/Duplicati/Server/Runner.cs
index ed5c4f62f..58673cf63 100644
--- a/Duplicati/Server/Runner.cs
+++ b/Duplicati/Server/Runner.cs
@@ -309,19 +309,18 @@ namespace Duplicati.Server
}
}
}
- public void WriteMessage(Library.Logging.LogEntry entry)
+
+ public void SetBackendProgress(Library.Main.IBackendProgress progress)
{
- // Do nothing. Implementation needed for ILogDestination interface.
+ lock (m_lock)
+ m_backendProgress = progress;
}
- public Duplicati.Library.Main.IBackendProgress BackendProgress
+ public void WriteMessage(Library.Logging.LogEntry entry)
{
- set
- {
- lock(m_lock)
- m_backendProgress = value;
- }
+ // Do nothing. Implementation needed for ILogDestination interface.
}
+
public Duplicati.Library.Main.IOperationProgress OperationProgress
{
set