Exemplo n.º 1
0
        public static void Shutdown()
        {
            QueryLogger al = instance;

            instance = null;
            if (al != null)
            {
                al.shutdown();
            }
        }
Exemplo n.º 2
0
        void Application_Start(object sender, EventArgs e)
        {
            // Init query logger
            QueryLogger.Init();

            // Load dictionary
            string dictFilePath = HttpRuntime.AppDomainAppPath;

            dictFilePath = Path.Combine(dictFilePath, "_data");
            dictFilePath = Path.Combine(dictFilePath, "handedict-zydeo.bin");
            dict         = new DictEngine(dictFilePath, new FontCoverageFull());

            // Initialize text provider
            TextProvider.Init();

            // Some static config parameters
            AppSettingsReader asr = new AppSettingsReader();

            gaCode = asr.GetValue("gaCode", typeof(string)).ToString();
        }
Exemplo n.º 3
0
 void Application_End(object sender, EventArgs e)
 {
     // Shut down query logger
     QueryLogger.Shutdown();
 }
Exemplo n.º 4
0
 public static void Init()
 {
     instance = new QueryLogger();
 }