1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- #pragma warning disable CS1591
- using System;
- using System.Collections.Generic;
- using System.IO;
- using System.Threading.Tasks;
- namespace MediaBrowser.Controller.Net
- {
- public class StaticResultOptions
- {
- public string ContentType { get; set; }
- public TimeSpan? CacheDuration { get; set; }
- public DateTime? DateLastModified { get; set; }
- public Func<Task<Stream>> ContentFactory { get; set; }
- public bool IsHeadRequest { get; set; }
- public IDictionary<string, string> ResponseHeaders { get; set; }
- public Action OnComplete { get; set; }
- public Action OnError { get; set; }
- public string Path { get; set; }
- public long? ContentLength { get; set; }
- public FileShare FileShare { get; set; }
- public StaticResultOptions()
- {
- ResponseHeaders = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase);
- FileShare = FileShare.Read;
- }
- }
- public class StaticFileResultOptions : StaticResultOptions
- {
- }
- }
|