Make ctors private
MODIFY
WalletWasabi/Helpers/PowerSaving/LinuxInhibitorTask.cs
WalletWasabi/Helpers/PowerSaving/LinuxInhibitorTask.cs
@@ -11,8 +11,7 @@ namespace WalletWasabi.Helpers.PowerSaving;
/// <seealso href="https://www.freedesktop.org/wiki/Software/systemd/inhibit/"/>
public class LinuxInhibitorTask : BaseInhibitorTask
{
- /// <remarks>Use the constructor only in tests.</remarks>
- internal LinuxInhibitorTask(InhibitWhat what, TimeSpan period, string reason, ProcessAsync process)
+ private LinuxInhibitorTask(InhibitWhat what, TimeSpan period, string reason, ProcessAsync process)
: base(period, reason, process)
{
What = what;

MODIFY
WalletWasabi/Helpers/PowerSaving/MacOsInhibitorTask.cs
WalletWasabi/Helpers/PowerSaving/MacOsInhibitorTask.cs
@@ -9,8 +9,7 @@ namespace WalletWasabi.Helpers.PowerSaving;
/// </summary>
public class MacOsInhibitorTask : BaseInhibitorTask
{
- /// <remarks>Use the constructor only in tests.</remarks>
- internal MacOsInhibitorTask(TimeSpan period, string reason, ProcessAsync process)
+ private MacOsInhibitorTask(TimeSpan period, string reason, ProcessAsync process)
: base(period, reason, process)
{
}

Make ctors private