Skip to content

IFileStorage interface

lchrennew edited this page Dec 18, 2012 · 3 revisions

WebFileManager.IFileStorage defines common behavior to access files on a storage system.

Members

1. GetLastModified Method

/// <summary>
/// Get the max last update time of the files located on parameter filenames
/// </summary>
/// <param name="filenames"></param>
/// <returns></returns>
DateTime GetLastModified(IEnumerable<string> filenames);

2. GetETag Method

/// <summary>
/// Get the entity tag for HTTP Validation
/// </summary>
/// <param name="lastModified"></param>
/// <param name="start"></param>
/// <param name="end"></param>
/// <returns></returns>
string GetETag(DateTime lastModified, long start = -1, long end = -1, bool weak = false);

3. GetEntries Method

/// <summary>
/// Get a list of IFileEntry by filenames and output the sum of the byte length of these files
/// </summary>
/// <param name="filenames">filenames to query, files not exists will be excepted from result.</param>
/// <param name="length">total bytes of the existent files</param>
/// <returns></returns>
IEnumerable<IFileEntry> GetEntries(IEnumerable<string> filenames, out long length);

Clone this wiki locally