Place properties after constructor.
MODIFY
WalletWasabi/Services/UpdateChecker.cs
WalletWasabi/Services/UpdateChecker.cs
@@ -17,6 +17,12 @@ namespace WalletWasabi.Services
public event EventHandler<UpdateStatus> UpdateStatusChanged;
+ public UpdateChecker(TimeSpan period, WasabiClient client) : base(period)
+ {
+ WasabiClient = Guard.NotNull(nameof(client), client);
+ UpdateStatus = new UpdateStatus(true, true);
+ }
+
public WasabiClient WasabiClient { get; }
public UpdateStatus UpdateStatus
@@ -32,12 +38,6 @@ namespace WalletWasabi.Services
}
}
- public UpdateChecker(TimeSpan period, WasabiClient client) : base(period)
- {
- WasabiClient = Guard.NotNull(nameof(client), client);
- UpdateStatus = new UpdateStatus(true, true);
- }
-
protected override async Task ActionAsync(CancellationToken cancel)
{
UpdateStatus = await WasabiClient.CheckUpdatesAsync(cancel).ConfigureAwait(false);

Place properties after constructor.