示例#1
0
 /// <summary>
 /// Creates an instance of FilePathExResultOptions.
 /// </summary>
 internal FilePathExResultOptions(FilePathExResultOptions options)
 {
     Cacheability = options.Cacheability;
     SupportLastModifiedCaching = options.SupportLastModifiedCaching;
     SupportByteRange           = options.SupportByteRange;
     ETagGenerator = options.ETagGenerator;
 }
示例#2
0
 static FilePathExResultOptions()
 {
     Default = new FilePathExResultOptions();
 }
示例#3
0
 /// <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);
 }