Example #1
0
        private CommandInfo ParseCommand(Alachisoft.NCache.Common.Protobuf.Command command, ClientManager clientManager)
        {
            CommandInfo cmdInfo = new CommandInfo();

            Alachisoft.NCache.Common.Protobuf.GetCacheBindingCommand getCacheBindingCommand = command.getCacheBindingCommand;
            cmdInfo.CacheId = getCacheBindingCommand.cacheId;
            return(cmdInfo);
        }
        private GetCacheBindingCommand.CommandInfo ParseCommand(Alachisoft.NCache.Common.Protobuf.Command command, ClientManager clientManager)
        {
            CommandInfo cmdInfo = new CommandInfo();

            Alachisoft.NCache.Common.Protobuf.GetCacheBindingCommand getCacheBindingCommand = command.getCacheBindingCommand;

            cmdInfo.CacheId      = getCacheBindingCommand.cacheId;
            cmdInfo.IsJavaClient = getCacheBindingCommand.isJavaClient;
            cmdInfo.RequestId    = command.requestID.ToString();

            return(cmdInfo);
        }
Example #3
0
        private GetCacheBindingCommand.CommandInfo ParseCommand(Alachisoft.NCache.Common.Protobuf.Command command, ClientManager clientManager)
        {
            CommandInfo cmdInfo = new CommandInfo();

            Alachisoft.NCache.Common.Protobuf.GetCacheBindingCommand getCacheBindingCommand = command.getCacheBindingCommand;

            cmdInfo.CacheId      = getCacheBindingCommand.cacheId;
            cmdInfo.IsJavaClient = getCacheBindingCommand.isJavaClient;
            cmdInfo.RequestId    = command.requestID.ToString();
            cmdInfo.Password     = getCacheBindingCommand.pwd;
            cmdInfo.UserName     = getCacheBindingCommand.userId;

            cmdInfo.PasswordBinary = getCacheBindingCommand.binaryPassword;
            cmdInfo.UserNameBinary = getCacheBindingCommand.binaryUserId;

            return(cmdInfo);
        }