Пример #1
0
        public GetKeysByTagCommand(string[] tags, TagComparisonType comparisonType, int methodOverload)
        {
            base.name = "GetKeysByTagCommand";

            _getTagCommand = new Alachisoft.NCache.Common.Protobuf.GetKeysByTagCommand();
            _getTagCommand.tagComparisonType = (int)comparisonType;
            _getTagCommand.tags.AddRange(tags);
            _getTagCommand.requestId = base.RequestId;
            _methodOverload          = methodOverload;
        }
Пример #2
0
        //PROTOBUF
        private CommandInfo ParseCommand(Alachisoft.NCache.Common.Protobuf.Command command, ClientManager clientManager)
        {
            CommandInfo cmdInfo = new CommandInfo();

            Alachisoft.NCache.Common.Protobuf.GetKeysByTagCommand getTagCommand = command.getKeysByTagCommand;

            cmdInfo.ComparisonType   = (TagComparisonType)getTagCommand.tagComparisonType;
            cmdInfo.RequestId        = getTagCommand.requestId.ToString();
            cmdInfo.Tags             = getTagCommand.tags.ToArray();
            cmdInfo.ClientLastViewId = command.clientLastViewId;

            return(cmdInfo);
        }