Files
components/LiteCharms.Features/CancellationTokenProvider.cs
T
Khwezi Mngoma cf439c5006
continuous-integration/drone/pr Build is passing
Ensure uninherited types are sealed
Resolved mediator source geenrator conflict with tests
2026-06-15 10:27:44 +02:00

17 lines
339 B
C#

namespace LiteCharms.Features;
public sealed class CancellationTokenProvider : IDisposable
{
private readonly CancellationTokenSource source = new();
public CancellationToken Token => source.Token;
public void Dispose()
{
source.Cancel();
source.Dispose();
GC.SuppressFinalize(this);
}
}