wip images service
This commit is contained in:
		| @@ -9,6 +9,7 @@ namespace NadekoBot.Core.Services.Impl | |||||||
|     //todo move everything to redis |     //todo move everything to redis | ||||||
|     public class ImagesService : IImagesService |     public class ImagesService : IImagesService | ||||||
|     { |     { | ||||||
|  |         private readonly IDataCache _cache; | ||||||
|         private readonly Logger _log; |         private readonly Logger _log; | ||||||
|  |  | ||||||
|         private const string _basePath = "data/images/"; |         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> Rip { get; private set; } | ||||||
|         public ImmutableArray<byte> FlowerCircle { get; private set; } |         public ImmutableArray<byte> FlowerCircle { get; private set; } | ||||||
|  |  | ||||||
|         public ImagesService() |         public ImagesService(IDataCache cache, int shardId) | ||||||
|         { |         { | ||||||
|  |             _cache = cache; | ||||||
|             _log = LogManager.GetCurrentClassLogger(); |             _log = LogManager.GetCurrentClassLogger(); | ||||||
|             this.Reload(); |             if (shardId == 0) | ||||||
|  |             { | ||||||
|  |                 this.Reload(); | ||||||
|  |             } | ||||||
|         } |         } | ||||||
|  |  | ||||||
|         public void Reload() |         public void Reload() | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user