// --------------------------------------------------------------------------------------------------------------------
//
// Copyright (c) James South.
// Licensed under the Apache License, Version 2.0.
//
//
// Defines properties and methods for allowing retrieval of image from different sources.
//
// --------------------------------------------------------------------------------------------------------------------
namespace ImageProcessor.Web.Services
{
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
///
/// Defines properties and methods for allowing retrieval of image from different sources.
///
public interface IImageService
{
///
/// Gets the key for the given implementation.
///
/// This value is used as a prefix for any image requests that should use this service.
///
///
string Key { get; }
///
/// Gets a value indicating whether the image service requests files from
/// the locally based file system.
///
bool IsFileLocalService { get; }
///
/// Gets or sets any additional settings required by the service.
///
Dictionary Settings { get; set; }
///
/// Gets or sets the white list of .
///
Uri[] WhiteList { get; set; }
///
/// Gets the image using the given identifier.
///
///
/// The value identifying the image to fetch.
///
///
/// The array containing the image data.
///
Task GetImage(object id);
}
}