Ejemplo n.º 1
0
        public GetTagCommand(string[] tags, TagComparisonType comparisonType, int methodOverload)
        {
            base.name = "GetTagCommand";

            _getTagCommand = new Alachisoft.NCache.Common.Protobuf.GetTagCommand();
            _getTagCommand.tagComparisonType = (int)comparisonType;
            _getTagCommand.tags.AddRange(tags);
            _getTagCommand.requestId = base.RequestId;
            _methodOverload          = methodOverload;
        }
Ejemplo n.º 2
0
        //PROTOBUF
        private CommandInfo ParseCommand(Alachisoft.NCache.Common.Protobuf.Command command, ClientManager clientManager)
        {
            CommandInfo cmdInfo = new CommandInfo();

            Alachisoft.NCache.Common.Protobuf.GetTagCommand getTagCommand = command.getTagCommand;

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

            return(cmdInfo);
        }