예제 #1
0
 private void InitManager(List <string> pPermKeyList, bool pIsSuperUser)
 {
     try
     {
         // Check out the use of CreateObjectRef......
         opsGridManager = new OpsGridManager(updMsgServer, updMsgUser, updMsgPwd, updateFromCacheTimerInterval,
                                             msgFilter, inbMsgFilter, pPermKeyList, pIsSuperUser);
         daoManager = new DAOManager();
         opsGridManager.IncMessageCounter   += new EventHandler(OnIncMessageCounter);
         opsGridManager.ResetMessageCounter += new EventHandler(OnResetMessageCounter);
         opsGridManager.BeginGridUpdates    += new EventHandler(OnBeginGridUpdates);
         opsGridManager.EndGridUpdates      += new EventHandler(OnEndGridUpdates);
     }
     catch (Exception ex)
     {
         throw new Exception("An error occurred while creating and populating internal data storage." + Environment.NewLine +
                             "Error CNF-346 in " + PROJ_FILE_NAME + ".InitManager(): " + ex.Message);
     }
 }
예제 #2
0
 public void CleanUp()
 {
     daoManager     = null;
     managedDataSet = null;
     opsGridManager.Dispose();
 }