Exemplo n.º 1
0
        public override CacheEntry GetGroup(object key, string group, string subGroup, ref ulong version, ref object lockId, ref DateTime lockDate, LockExpiration lockExpiration, LockAccessType accessType, OperationContext operationContext)
        {
            if (_grpIndexManager.KeyExists(key, group, subGroup))
            {
                return(Get(key, ref version, ref lockId, ref lockDate, lockExpiration, accessType, operationContext));
            }

            return(null);
        }
Exemplo n.º 2
0
        public override Hashtable GetGroup(object[] keys, string group, string subGroup, OperationContext operationContext)
        {
            Hashtable hashtable = new Hashtable();

            for (int i = 0; i < keys.Length; i++)
            {
                try
                {
                    if (_grpIndexManager.KeyExists(keys[i], group, subGroup))
                    {
                        hashtable[keys[i]] = this.Get(keys[i], operationContext);
                    }
                }
                catch (StateTransferException exception)
                {
                    hashtable[keys[i]] = exception;
                }
            }
            return(hashtable);
        }