Exemplo n.º 1
0
        internal ClearCommand(BitSet flagMap)
        {
            base.name = "ClearCommand";

            _clearCommand           = new Alachisoft.NCache.Common.Protobuf.ClearCommand();
            _clearCommand.flag      = flagMap.Data;
            _clearCommand.requestId = base.RequestId;
        }
Exemplo n.º 2
0
        internal ClearCommand(BitSet flagMap)
        {
            base.name = "ClearCommand";

            _clearCommand = new Alachisoft.NCache.Common.Protobuf.ClearCommand();
            _clearCommand.flag = flagMap.Data;
            _clearCommand.requestId = base.RequestId;
        }
Exemplo n.º 3
0
        //PROTOBUF
        private CommandInfo ParseCommand(Alachisoft.NCache.Common.Protobuf.Command command, ClientManager clientManager)
        {
            CommandInfo cmdInfo = new CommandInfo();

            Alachisoft.NCache.Common.Protobuf.ClearCommand clearCommand = command.clearCommand;
            cmdInfo.FlagMap   = new BitSet((byte)clearCommand.flag);
            cmdInfo.RequestId = clearCommand.requestId.ToString();

            return(cmdInfo);
        }
Exemplo n.º 4
0
        //PROTOBUF
        private CommandInfo ParseCommand(Alachisoft.NCache.Common.Protobuf.Command command, ClientManager clientManager)
        {
            CommandInfo cmdInfo = new CommandInfo();

            Alachisoft.NCache.Common.Protobuf.ClearCommand clearCommand = command.clearCommand;

            cmdInfo.DoAsync      = clearCommand.isAsync;
            cmdInfo.DsClearedId  = (short)clearCommand.datasourceClearedCallbackId;
            cmdInfo.FlagMap      = new BitSet((byte)clearCommand.flag);
            cmdInfo.RequestId    = clearCommand.requestId.ToString();
            cmdInfo.providerName = clearCommand.providerName;

            return(cmdInfo);
        }
Exemplo n.º 5
0
        internal ClearCommand(short cacheCleared, bool isAsync, BitSet flagMap, short onDsClearedId, string providerName, int methodOverload)
        {
            base.name = "ClearCommand";
            base.asyncCallbackSpecified = isAsync && cacheCleared != -1 ? true : false;
            base.isAsync = isAsync;

            _clearCommand = new Alachisoft.NCache.Common.Protobuf.ClearCommand();
            _clearCommand.datasourceClearedCallbackId = onDsClearedId;
            _clearCommand.isAsync      = isAsync;
            _clearCommand.flag         = flagMap.Data;
            _clearCommand.requestId    = base.RequestId;
            _clearCommand.providerName = providerName;

            _cacheCleared   = cacheCleared;
            _methodOverload = methodOverload;
        }
Exemplo n.º 6
0
        private CommandInfo ParseCommand(Alachisoft.NCache.Common.Protobuf.Command command, ClientManager clientManager)
        {
            CommandInfo cmdInfo = new CommandInfo();

            Alachisoft.NCache.Common.Protobuf.ClearCommand clearCommand = command.clearCommand;

            cmdInfo.DoAsync     = clearCommand.isAsync;
            cmdInfo.DsClearedId = (short)clearCommand.datasourceClearedCallbackId;
            BitSet bitset = BitSet.CreateAndMarkInUse(clientManager.CacheFakePool, NCModulesConstants.SocketServer);;

            bitset.Data          = ((byte)clearCommand.flag);
            cmdInfo.FlagMap      = bitset;
            cmdInfo.RequestId    = clearCommand.requestId.ToString();
            cmdInfo.providerName = clearCommand.providerName;

            return(cmdInfo);
        }