diff options
author | Kenneth Skovhede <kenneth@hexad.dk> | 2017-10-11 13:50:10 +0300 |
---|---|---|
committer | Kenneth Skovhede <kenneth@hexad.dk> | 2017-10-11 13:50:10 +0300 |
commit | 762035c309878efd67933dc95aad3d912b1e9391 (patch) | |
tree | 862a570561ffb0f28fee38c3985b88aacd332655 /Duplicati/Service/Program.cs | |
parent | 6ad0fa649e837382fa7376ff2a223ee7ba4c0037 (diff) | |
parent | ba94d36a80f7a1a195196f8cc19aa8247a0ce336 (diff) |
Merge branch 'experiment/autoupdate_service' into feature/improve-autoupdater
Diffstat (limited to 'Duplicati/Service/Program.cs')
-rw-r--r-- | Duplicati/Service/Program.cs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Duplicati/Service/Program.cs b/Duplicati/Service/Program.cs index a7fdc7ca6..17a01c82b 100644 --- a/Duplicati/Service/Program.cs +++ b/Duplicati/Service/Program.cs @@ -19,9 +19,15 @@ using System; namespace Duplicati.Service
{
- class MainClass
+ public class Program
{
- public static void Main(string[] args)
+ [STAThread]
+ public static int Main(string[] args)
+ {
+ return Duplicati.Library.AutoUpdater.UpdaterManager.RunFromMostRecent(typeof(Program).GetMethod("RealMain"), args, Duplicati.Library.AutoUpdater.AutoUpdateStrategy.Never);
+ }
+
+ public static void RealMain(string[] args)
{
using(var runner = new Runner(args))
runner.Wait();
|