コード例 #1
0
 public static PreWarningLastedResultQuery GetLatestWarningResultInstance()
 {
     //单例模式
     return(_latestWarningResult ?? (_latestWarningResult = new PreWarningLastedResultQuery()));
 }
コード例 #2
0
 public static void ReleaseLatestWarningResultInstance()
 {
     _latestWarningResult.Close();
     _latestWarningResult.Dispose();
     _latestWarningResult = null;
 }
コード例 #3
0
 public static void CleanLatestWarningResult()
 {
     _latestWarningResult.Close();
     _latestWarningResult.Dispose();
     _latestWarningResult = null;
 }