Beispiel #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;
 }
Beispiel #2
0
 static FilePathExResultOptions()
 {
     Default = new FilePathExResultOptions();
 }
Beispiel #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);
 }