コード例 #1
0
        public void Init(HttpApplication context)
        {
            Action <NameValueCollection, bool> setReadOnly;
            var isReadOnly = AppHarbor.InitializeExpressions(out setReadOnly);

            context.BeginRequest += (sender, args) => AppHarbor.RemapForAppHarbor(isReadOnly, setReadOnly);
        }
コード例 #2
0
 public static void PreAppInit()
 {
     if (Disabled())
     {
         return;
     }
     if (AppHarbor.IsHosting())
     {
         DynamicModuleUtility.RegisterModule(typeof(AppHarborModule));
     }
     RegisterPipelineModules();
     RunPreStartMethods();
 }
コード例 #3
0
        public static void Install()
        {
            var  disableValue = ConfigurationManager.AppSettings["minirack_Bypass"];
            bool disable;

            bool.TryParse(disableValue, out disable);
            if (disable)
            {
                return;
            }
            if (AppHarbor.IsHosting())
            {
                DynamicModuleUtility.RegisterModule(typeof(AppHarborModule));
            }
            RegisterPipelineModules();
        }