Ejemplo n.º 1
0
        public (bool isBlocking, BLOCKZONEQUEUE blockZoneQueue) IsBlocking(string entrySecID)
        {
            BLOCKZONEQUEUE blockZoneQueue = null;

            using (DBConnection_EF con = DBConnection_EF.GetUContext())
            {
                blockZoneQueue = blockZoneQueueDao.getCountBlockingQueueBySecID(con, entrySecID);
            }
            return(blockZoneQueue != null, blockZoneQueue);
        }
Ejemplo n.º 2
0
            public bool checkBlockZoneQueueIsBlockingByEntrySecID(List <string> entry_sec_ids)
            {
                bool isBlocking = false;

                //DBConnection_EF con = DBConnection_EF.GetContext();
                //using (DBConnection_EF con = new DBConnection_EF())
                using (DBConnection_EF con = DBConnection_EF.GetUContext())
                {
                    isBlocking = blockZoneQueueDao.getCountBlockingQueueBySecID(con, entry_sec_ids) != 0;
                }
                return(isBlocking);
            }