Profiler can be enabled via config file.

This commit is contained in:
Mark McDowall 2011-12-13 18:31:20 -08:00
commit 28259bc254
5 changed files with 29 additions and 2 deletions

View file

@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using NzbDrone.Common;
namespace NzbDrone.Web.Helpers
{
public static class ProfilerHelper
{
public static bool Enabled()
{
var enviromentProvider = new EnviromentProvider();
var configFileProvider = new ConfigFileProvider(enviromentProvider);
return configFileProvider.EnableProfiler;
}
}
}