add single instance checker back to Services
MODIFY
WalletWasabi.Fluent.Desktop/Program.cs
WalletWasabi.Fluent.Desktop/Program.cs
@@ -89,7 +89,7 @@ public class Program
try
{
Global = CreateGlobal(dataDir, uiConfig, config);
- Services.Initialize(Global);
+ Services.Initialize(Global, singleInstanceChecker);
Logger.LogSoftwareStarted("Wasabi GUI");
AppBuilder

MODIFY
WalletWasabi.Fluent/Services.cs
WalletWasabi.Fluent/Services.cs
@@ -32,13 +32,16 @@ public static class Services
public static UiConfig UiConfig { get; private set; } = null!;
+ public static SingleInstanceChecker SingleInstanceChecker { get; private set; } = null!;
+
public static bool IsInitialized { get; private set; }
/// <summary>
/// Initializes global services used by fluent project.
/// </summary>
/// <param name="global">The global instance.</param>
- public static void Initialize(Global global)
+ /// <param name="singleInstanceChecker">The singleInstanceChecker instance.</param>
+ public static void Initialize(Global global, SingleInstanceChecker singleInstanceChecker)
{
Guard.NotNull(nameof(global.DataDir), global.DataDir);
Guard.NotNull(nameof(global.TorSettings), global.TorSettings);
@@ -62,6 +65,7 @@ public static class Services
TransactionBroadcaster = global.TransactionBroadcaster;
HostedServices = global.HostedServices;
UiConfig = global.UiConfig;
+ SingleInstanceChecker = singleInstanceChecker;
IsInitialized = true;
}

add single instance checker back to Services