Compare commits

..

2 commits

Author SHA1 Message Date
20ffee6d43
chore: disable code format rules in test projects
Some checks failed
default / dotnet-default-workflow (push) Failing after 2m11s
2026-05-10 10:33:19 +02:00
5a4b6f2cbb
chore: fix warning as error working 2026-05-10 10:33:19 +02:00

View file

@ -8,7 +8,7 @@ namespace Geekeey.Process;
/// <summary> /// <summary>
/// Represents an asynchronous execution of a command. /// Represents an asynchronous execution of a command.
/// </summary> /// </summary>
public partial class CommandTask<TResult> : IDisposable public sealed partial class CommandTask<TResult> : IDisposable
{ {
private readonly Process _process; private readonly Process _process;
@ -19,14 +19,6 @@ public partial class CommandTask<TResult> : IDisposable
ProcessId = processId; ProcessId = processId;
} }
/// <summary>
/// Finalizer to ensure resources are released.
/// </summary>
~CommandTask()
{
Dispose();
}
/// <summary> /// <summary>
/// Underlying task. /// Underlying task.
/// </summary> /// </summary>
@ -87,11 +79,10 @@ public partial class CommandTask<TResult> : IDisposable
public void Dispose() public void Dispose()
{ {
Task.Dispose(); Task.Dispose();
GC.SuppressFinalize(this);
} }
} }
public partial class CommandTask<TResult> public sealed partial class CommandTask<TResult>
{ {
/// <summary> /// <summary>
/// Converts the command task into a regular task. /// Converts the command task into a regular task.
@ -100,4 +91,4 @@ public partial class CommandTask<TResult>
{ {
return commandTask.Task; return commandTask.Task;
} }
} }