Exemple #1
0
        public static void PreStart()
        {
            MessageQueue.Enable(maxPerQueue: 1000);

            AntiForgeryConfig.UniqueClaimTypeIdentifier = ClaimTypes.NameIdentifier;

            ViewEngines.Engines.Clear();
            ViewEngines.Engines.Add(CreateViewEngine());

            NinjectPreStart();
            ElmahPreStart();
            GlimpsePreStart();

            try
            {
                if (RoleEnvironment.IsAvailable)
                {
                    CloudPreStart();
                }
            }
            catch (Exception)
            {
                // Azure SDK not available!
            }
        }
Exemple #2
0
        public static void PreStart()
        {
            MessageQueue.Enable(maxPerQueue: 1000);

            AntiForgeryConfig.UniqueClaimTypeIdentifier = ClaimTypes.NameIdentifier;

            ViewEngines.Engines.Clear();
            ViewEngines.Engines.Add(CreateViewEngine());
        }
        public static void PreStart()
        {
            MessageQueue.Enable(maxPerQueue: 1000);

            AntiForgeryConfig.UniqueClaimTypeIdentifier = ClaimTypes.NameIdentifier;

            ViewEngines.Engines.Clear();
            ViewEngines.Engines.Add(CreateViewEngine());

            try
            {
                //if (RoleEnvironment.IsAvailable)
                //{
                //    CloudPreStart();
                //}
            }
            catch
            {
                // Azure SDK not available!
            }
        }