public static void Shutdown() { QueryLogger al = instance; instance = null; if (al != null) { al.shutdown(); } }
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(); }
void Application_End(object sender, EventArgs e) { // Shut down query logger QueryLogger.Shutdown(); }
public static void Init() { instance = new QueryLogger(); }