using System;
using System.Collections.Generic;
using System.Text;
using System.Web.Hosting;
using System.Collections.Specialized;

namespace ImageResizer.Plugins {
    /// <summary>
    /// Implement this to allow your class (or VirtualPathProvider subclass) to be used without registering it with the whole ASP.NET system.
    /// </summary>
    public interface IVirtualImageProvider {
        /// <summary>
        /// Returns true if the specified file exists.
        /// </summary>
        /// <param name="virtualPath"></param>
        /// <param name="queryString"></param>
        /// <returns></returns>
        bool FileExists(string virtualPath, NameValueCollection queryString);
        /// <summary>
        /// Returns a virtual file instance for the specified path and querystring.
        /// </summary>
        /// <param name="virtualPath"></param>
        /// <param name="queryString"></param>
        /// <returns></returns>
        IVirtualFile GetFile(string virtualPath, NameValueCollection queryString);
    }
}
