move FeedEngine to its own class

This commit is contained in:
chsakell
2016-10-04 11:27:03 +03:00
parent a36624b0bf
commit cc3b7fbbc5
3 changed files with 24 additions and 41 deletions

23
Core/FeedEngine.cs Normal file
View File

@@ -0,0 +1,23 @@
using System;
using System.Collections.Generic;
using LiveGameFeed.Models;
using Microsoft.Extensions.Logging;
using RecurrentTasks;
namespace LiveGameFeed.Core
{
public class FeedEngine : IRunnable
{
private ILogger logger;
public FeedEngine(ILogger<FeedEngine> logger)
{
this.logger = logger;
}
public void Run(TaskRunStatus taskRunStatus)
{
var msg = string.Format("Run at: {0}", DateTimeOffset.Now);
logger.LogDebug(msg);
}
}
}