public CoffeeScriptConfiguration GetCoffeeConfiguration()
        {
            if (mCoffeeConfiguration == null) {
                mCoffeeConfiguration = (CoffeeScriptConfiguration)ConfigurationManager.GetSection("coffee");

                if (mCoffeeConfiguration == null)
                    mCoffeeConfiguration = CoffeeScriptConfiguration.DefaultWeb;
            }

            return mCoffeeConfiguration;
        }
Esempio n. 2
0
        public CoffeeScriptConfiguration GetCoffeeConfiguration()
        {
            if (mCoffeeConfiguration == null)
            {
                mCoffeeConfiguration = (CoffeeScriptConfiguration)ConfigurationManager.GetSection("coffee");

                if (mCoffeeConfiguration == null)
                {
                    mCoffeeConfiguration = CoffeeScriptConfiguration.DefaultWeb;
                }
            }

            return(mCoffeeConfiguration);
        }
 public CoffeeScriptHttpHandler()
 {
     mConfig = new WebConfigConfigurationLoader().GetCoffeeConfiguration();
     mHandlerImpl = new ContainerFactory().GetCoffeeContainer(mConfig)
         .GetInstance<CoffeeHandlerImpl>();
 }