Ensure uninherited types are sealed
continuous-integration/drone/pr Build is passing

Resolved mediator source geenrator conflict with tests
This commit is contained in:
Khwezi Mngoma
2026-06-15 10:27:44 +02:00
parent bf36bb6bbc
commit cf439c5006
22 changed files with 50 additions and 30 deletions
@@ -0,0 +1,13 @@
namespace LiteCharms.Features.Extensions;
public static class TaskCancellation
{
public static IServiceCollection AddCancellationToken(this IServiceCollection services)
{
services.AddScoped<CancellationTokenProvider>();
services.AddScoped(typeof(CancellationToken),
provider => provider.GetRequiredService<CancellationTokenProvider>().Token);
return services;
}
}