Switch parameter order.
MODIFY
WalletWasabi.Gui/Global.cs
WalletWasabi.Gui/Global.cs
@@ -158,7 +158,7 @@ namespace WalletWasabi.Gui
var httpClient = (WalletWasabi.Tor.Http.TorHttpClient)Synchronizer.HttpClientFactory.NewHttpClient(() => null!, isolateStream: false);
#pragma warning disable CA2000 // Dispose objects before losing scope
- HostedServices.Register(new TorMonitor(period: TimeSpan.FromSeconds(3), httpClient, Config.GetFallbackBackendUri(), TorManager), nameof(TorMonitor));
+ HostedServices.Register(new TorMonitor(period: TimeSpan.FromSeconds(3), fallbackBackendUri: Config.GetFallbackBackendUri(), httpClient: httpClient, torProcessManager: TorManager), nameof(TorMonitor));
#pragma warning restore CA2000 // Dispose objects before losing scope
}

MODIFY
WalletWasabi/Tor/TorMonitor.cs
WalletWasabi/Tor/TorMonitor.cs
@@ -20,7 +20,7 @@ namespace WalletWasabi.Tor
/// <summary>
/// Creates a new instance of the object.
/// </summary>
- public TorMonitor(TimeSpan period, TorHttpClient httpClient, Uri fallbackBackendUri, TorProcessManager torProcessManager) : base(period)
+ public TorMonitor(TimeSpan period, Uri fallbackBackendUri, TorHttpClient httpClient, TorProcessManager torProcessManager) : base(period)
{
HttpClient = httpClient;
FallbackBackendUri = fallbackBackendUri;

Switch parameter order.