Пример #1
0
        public static FloorStatus GetInstance()
        {
            if (_objFloorStatus == null)
                _objFloorStatus = new FloorStatus();

            return _objFloorStatus;
        }
Пример #2
0
        public static FloorStatus GetInstance()
        {
            if (_objFloorStatus == null)
            {
                _objFloorStatus = new FloorStatus();
            }

            return(_objFloorStatus);
        }
 private void StartService()
 {
     LogManager.WriteLog("Inside StartService method", LogManager.enumLogLevel.Info);            
     System.Threading.Thread.Sleep(4000);
     LogManager.WriteLog("DialupService" + "---" + "Resetting the under process records.", LogManager.enumLogLevel.Info);
     _bmcExchangeImportExport.ResetExportHistory();
     LogManager.WriteLog("DialupService" + "---" + "Service started to pick records from EH.", LogManager.enumLogLevel.Info);
     _bmcExchangeImportExport.ExportDataToEnterprise();
     _bmcExchangeImportExport.ImportDataToExchange();
     _floorStatus = FloorStatus.GetInstance();
     _vaultMessages = new VaultMessageServiceHandle();
     _vaultMessages.Init();
     _vaultMessages.DoWork();
     LogManager.WriteLog("Service Started Successfully.", LogManager.enumLogLevel.Info);
 }