public static void PreStart() { MessageQueue.Enable(maxPerQueue: 1000); AntiForgeryConfig.UniqueClaimTypeIdentifier = ClaimTypes.NameIdentifier; ViewEngines.Engines.Clear(); ViewEngines.Engines.Add(CreateViewEngine()); GlimpsePreStart(); try { if (RoleEnvironment.IsAvailable) { CloudPreStart(); } } catch { // Azure SDK not available! } }