Files
eveo/Eve-O-Preview/Mediator/Handlers/Services/StopServiceHandler.cs
Anton Kasyanov 42be487d31 Method names fix
2018-02-19 21:18:23 +02:00

25 lines
567 B
C#

using System.Threading;
using System.Threading.Tasks;
using EveOPreview.Mediator.Messages;
using EveOPreview.Services;
using MediatR;
namespace EveOPreview.Mediator.Handlers.Services
{
sealed class StopServiceHandler : IRequestHandler<StopService>
{
private readonly IThumbnailManager _manager;
public StopServiceHandler(IThumbnailManager manager)
{
this._manager = manager;
}
public Task Handle(StopService message, CancellationToken cancellationToken)
{
this._manager.Stop();
return Task.CompletedTask;
}
}
}