コード例 #1
0
        public static void ReleaseInstance()
        {
            string FUNCTION_NAME = "ReleaseInstance";

            LogHelperCli.GetInstance().Log_Generic(CLASS_NAME + "." + FUNCTION_NAME, LogHelperCli.GetInstance().GetLineNumber(),
                                                   EDebugLevelManaged.DebugInfo, "Function Entered");
            if (s_SimpleDatabase != null)
            {
                s_SimpleDatabase = null;
            }
            LogHelperCli.GetInstance().Log_Generic(CLASS_NAME + "." + FUNCTION_NAME, LogHelperCli.GetInstance().GetLineNumber(),
                                                   EDebugLevelManaged.DebugInfo, "Function Exited");
        }
コード例 #2
0
        public void ThreadMemberFunction(object item)
        {
            string connectionString = (string)item;
            bool   bConnected       = false;

            while (!bConnected)
            {
                if (IsTerminated())
                {
                    break;
                }
                bConnected = SimpleDatabase.GetInstance().IsDatabaseConnectable(connectionString);
            }
            if (bConnected)
            {
                UpdateStatusHandler(connectionString, DBStatus.DB_ONLINE);
            }
        }