Using Visual Studio 2012 .NET webForms, I have my Startup.cs file in my root application. The “HttpContext.Current” is null when the site loads, meaning I can’t check the URL name to see if I’m on staging, dev, or production.
I’m trying to find an easy way to prevent hangfire from running/starting in my local development environment. Anyone have any experience doing this? Or any best practices on how to?