internal ClearCommand(BitSet flagMap) { base.name = "ClearCommand"; _clearCommand = new Alachisoft.NCache.Common.Protobuf.ClearCommand(); _clearCommand.flag = flagMap.Data; _clearCommand.requestId = base.RequestId; }
//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); }
//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); }
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; }
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); }