Exemplo n.º 1
0
 public BulkGetCacheItemCommand(string[] keys, BitSet flagMap, int methodOverload)
 {
     base.name                = "BulkGetCacheItemCommand";
     base.BulkKeys            = keys;
     _bulkGetCacheItemCommand = new Alachisoft.NCache.Common.Protobuf.BulkGetCacheItemCommand();
     _bulkGetCacheItemCommand.keys.AddRange(keys);
     _bulkGetCacheItemCommand.flag      = flagMap.Data;
     _bulkGetCacheItemCommand.requestId = base.RequestId;
     _methodOverload = methodOverload;
 }
Exemplo n.º 2
0
        //PROTOBUF
        private CommandInfo ParseCommand(Alachisoft.NCache.Common.Protobuf.Command command, ClientManager clientManager)
        {
            CommandInfo cmdInfo = new CommandInfo();

            Alachisoft.NCache.Common.Protobuf.BulkGetCacheItemCommand bulkGetCacheItemCommand = command.bulkGetCacheItemCommand;
            cmdInfo.Keys         = bulkGetCacheItemCommand.keys.ToArray();
            cmdInfo.providerName = bulkGetCacheItemCommand.providerName;
            cmdInfo.RequestId    = bulkGetCacheItemCommand.requestId.ToString();
            BitSet bitset = BitSet.CreateAndMarkInUse(clientManager.CacheFakePool, NCModulesConstants.SocketServer);

            bitset.Data              = ((byte)bulkGetCacheItemCommand.flag);
            cmdInfo.FlagMap          = bitset;
            cmdInfo.ClientLastViewId = command.clientLastViewId;
            cmdInfo.CommandVersion   = command.commandVersion;



            return(cmdInfo);
        }