This commit is contained in:
LukePulverenti Luke Pulverenti luke pulverenti
2012-08-10 23:14:52 -04:00
9 changed files with 132 additions and 285 deletions

View File

@@ -21,6 +21,11 @@ namespace MediaBrowser.Common.Logging
LoggerInstance.LogError(message, paramList);
}
public static void LogException(Exception ex, params object[] paramList)
{
LogException(string.Empty, ex, paramList);
}
public static void LogException(string message, Exception ex, params object[] paramList)
{
LoggerInstance.LogException(message, ex, paramList);

View File

@@ -59,7 +59,7 @@ namespace MediaBrowser.Common.Net.Handlers
/// <summary>
/// The original HttpListenerContext
/// </summary>
protected HttpListenerContext HttpListenerContext { get; private set; }
protected HttpListenerContext HttpListenerContext { get; set; }
/// <summary>
/// The original QueryString
@@ -196,7 +196,7 @@ namespace MediaBrowser.Common.Net.Handlers
}
}
public void ProcessRequest(HttpListenerContext ctx)
public virtual void ProcessRequest(HttpListenerContext ctx)
{
HttpListenerContext = ctx;

View File

@@ -10,12 +10,22 @@ namespace MediaBrowser.Common.Net.Handlers
{
public class StaticFileHandler : BaseHandler
{
private string _Path;
public virtual string Path
{
get
{
if (!string.IsNullOrWhiteSpace(_Path))
{
return _Path;
}
return QueryString["path"];
}
set
{
_Path = value;
}
}
private bool FileStreamDiscovered = false;