Unhandled Exception Global Handler for OWIN / Katana?
问题 What is the proper way to implement a global Exception catcher-handler in a Katana (OWIN) implementation? In a self-hosted OWIN/Katana implementation running as an Azure Cloud Service (worker role), I placed this code in a Middleware: throw new Exception("pooo"); Then I placed this code in the Startup class Configuration method, setting a breakpoint in the event handler: AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledExceptionEventHandler; and the event handler in the