/// <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));
        }
Beispiel #2
0
 public AnimatedGifService(CloudImageService cloudImageService, IDataContext dataContext)
 {
     _cloudImageService = cloudImageService;
     _dataContext       = dataContext;
 }
Beispiel #3
0
 public DealController(ICloudImageProvider cloudImageProvider)
 {
     CloudImageService = new CloudImageService(cloudImageProvider);
 }
Beispiel #4
0
 public GifController(IDataContext dataContext, ICloudImageProvider cloudImageProvider)
 {
     CloudImageService  = new CloudImageService(cloudImageProvider);
     AnimatedGifService = new AnimatedGifService(CloudImageService, dataContext);
     DataContext        = dataContext;
 }