Beispiel #1
0
 public RemoveGroupCommand(string group, string subGroup, int methodOverload)
 {
     base.name                     = "RemoveGroupCommand";
     _removeGroupCommand           = new Alachisoft.NCache.Common.Protobuf.RemoveGroupCommand();
     _removeGroupCommand.group     = group;
     _removeGroupCommand.subGroup  = subGroup;
     _removeGroupCommand.requestId = RequestId;
     _methodOverload               = methodOverload;
 }
Beispiel #2
0
        //PROTOBUF
        private CommandInfo ParseCommand(Alachisoft.NCache.Common.Protobuf.Command command, ClientManager clientManager)
        {
            CommandInfo cmdInfo = new CommandInfo();

            Alachisoft.NCache.Common.Protobuf.RemoveGroupCommand removeGroupCommand = command.removeGroupCommand;
            cmdInfo.Group            = removeGroupCommand.group;
            cmdInfo.RequestId        = removeGroupCommand.requestId.ToString();
            cmdInfo.SubGroup         = removeGroupCommand.subGroup.Length == 0 ? null : removeGroupCommand.subGroup;
            cmdInfo.ClientLastViewId = command.clientLastViewId;

            return(cmdInfo);
        }