/// <summary> /// Creates an instance of FilePathExResultOptions. /// </summary> internal FilePathExResultOptions(FilePathExResultOptions options) { Cacheability = options.Cacheability; SupportLastModifiedCaching = options.SupportLastModifiedCaching; SupportByteRange = options.SupportByteRange; ETagGenerator = options.ETagGenerator; }
static FilePathExResultOptions() { Default = new FilePathExResultOptions(); }
/// <summary> /// Creates an instance of FilePathExResult. /// </summary> /// <param name="fileName"></param> /// <param name="contentType"></param> public FilePathExResult(string fileName, string contentType) : base(fileName, contentType) { // Copy the default options so that if somebody changes them, they don't change the default. Options = new FilePathExResultOptions(FilePathExResultOptions.Default); }