/// <summary> /// Delegating to the cloud image service still, just to ensure as much consistency as possible (until this is merged and I can switch to using RemoteFile) /// </summary> /// <param name="id"></param> /// <param name="settings"></param> /// <param name="prefix"></param> /// <param name="whitelist"></param> /// <returns></returns> private static async Task <byte[]> GetImage(object id, Dictionary <string, string> settings, string prefix, Uri[] whitelist) { var cloudImageService = new CloudImageService { Settings = settings, Prefix = prefix, WhiteList = whitelist }; return(await cloudImageService.GetImage(id).ConfigureAwait(false)); }
public AnimatedGifService(CloudImageService cloudImageService, IDataContext dataContext) { _cloudImageService = cloudImageService; _dataContext = dataContext; }
public DealController(ICloudImageProvider cloudImageProvider) { CloudImageService = new CloudImageService(cloudImageProvider); }
public GifController(IDataContext dataContext, ICloudImageProvider cloudImageProvider) { CloudImageService = new CloudImageService(cloudImageProvider); AnimatedGifService = new AnimatedGifService(CloudImageService, dataContext); DataContext = dataContext; }