title: Is GlobalConfiguration in System.Web.Http.WebHost compatible with Owin?
body: <p>I'm currently moving a WebApi 1 to a WebApi 2 project with OWIN.</p>
  
  <p>In this piece of code GlobalConfiguration is in System.Web.Http.WebHost.</p>
  
  <pre><code>public class HandlerErrorFilterAttribute : ExceptionFilterAttribute
  {
      public override void OnException(HttpActionExecutedContext context)
      {
          var logFactory = GlobalConfiguration.Configuration.DependencyResolver
                              .GetService(typeof(ILoggerFactory)) as ILoggerFactory;
          ...
      }
  }
  </code></pre>
  
  <p>I think this is not Owin compatible, but I can't find how to rewrite this so I can access the dependency resolver.</p>