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

26 lines
574 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 StartServiceHandler : IRequestHandler<StartService>
{
private readonly IThumbnailManager _manager;
public StartServiceHandler(IThumbnailManager manager)
{
this._manager = manager;
}
public Task Handle(StartService message, CancellationToken cancellationToken)
{
this._manager.Start();
return Task.CompletedTask;
}
}
}