Exemplo n.º 1
0
        public ResourceMode GetCurrentResourceMode()
        {
            var compilationSection = _configLoader.GetSection <CompilationSection>("system.web/compilation");

            if (compilationSection == null)
            {
                return(ResourceMode.Release);
            }
            else
            {
                return(compilationSection.Debug ? ResourceMode.Debug : ResourceMode.Release);
            }
        }
Exemplo n.º 2
0
        private ResourceMode GetResourceMode()
        {
            var compilationSection = _configLoader.GetSection <CompilationSection>("system.web/compilation");

            return(compilationSection.Debug ? ResourceMode.Debug : ResourceMode.Release);
        }