mirror of
https://github.com/AlexMacocian/MTSC.git
synced 2026-07-16 07:19:32 +00:00
20 lines
498 B
C#
20 lines
498 B
C#
using MTSC.ServerSide.BackgroundServices;
|
|
|
|
namespace MTSC.UnitTests.BackgroundServices
|
|
{
|
|
public sealed class IteratingBackgroundService : BackgroundServiceBase
|
|
{
|
|
private readonly IteratingService iteratingService;
|
|
|
|
public IteratingBackgroundService(IteratingService iteratingService)
|
|
{
|
|
this.iteratingService = iteratingService;
|
|
}
|
|
|
|
public override void Execute()
|
|
{
|
|
this.iteratingService.Iterate();
|
|
}
|
|
}
|
|
}
|