예제 #1
0
        public static void LoadSettings()
        {
            var config = GetConfiguration();

            FscApplication.LoadSettings(config);

            PCAT.Common.Caching.CacheManager.ScopedCache = new DictionaryCache();
        }
예제 #2
0
        public Startup(IConfiguration configuration)
        {
            Configuration = configuration;

            var logRepository = LogManager.GetRepository(Assembly.GetEntryAssembly());

            XmlConfigurator.Configure(logRepository, new FileInfo("Log4net.config"));

            //PCAT.Common.Caching.CacheManager.ScopedCache = new HttpContextCache();   todo: connect this to a session?
            FscApplication.LoadSettings(configuration);
        }