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"); }
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); } }