wip images service

This commit is contained in:
Master Kwoth 2017-11-03 13:21:35 +01:00
parent 1c157ddfc1
commit 4b7b44f0d4

View File

@ -9,6 +9,7 @@ namespace NadekoBot.Core.Services.Impl
//todo move everything to redis
public class ImagesService : IImagesService
{
private readonly IDataCache _cache;
private readonly Logger _log;
private const string _basePath = "data/images/";
@ -51,10 +52,14 @@ namespace NadekoBot.Core.Services.Impl
public ImmutableArray<byte> Rip { get; private set; }
public ImmutableArray<byte> FlowerCircle { get; private set; }
public ImagesService()
public ImagesService(IDataCache cache, int shardId)
{
_cache = cache;
_log = LogManager.GetCurrentClassLogger();
this.Reload();
if (shardId == 0)
{
this.Reload();
}
}
public void Reload()