public GetRunningServersCommand(string id)
        {
            base.name = "GetRunningServersCommand";
            _currentVersion = Alachisoft.NCache.Common.ProductVersion.ProductInfo;
            _getRunningServersCommand = new Alachisoft.NCache.Common.Protobuf.GetRunningServersCommand();
            _getRunningServersCommand.cacheId = id;

            _getRunningServersCommand.isDotnetClient = true;
            _getRunningServersCommand.requestId = base.RequestId;

            if (_getRunningServersCommand.productVersion == null)
                _getRunningServersCommand.productVersion = new Common.Protobuf.ProductVersion();

                _getRunningServersCommand.productVersion.AddiotionalData = _currentVersion.AdditionalData;
                _getRunningServersCommand.productVersion.EditionID = _currentVersion.EditionID;
                _getRunningServersCommand.productVersion.MajorVersion1 = this.ParseToByteArray(_currentVersion.MajorVersion1);
                _getRunningServersCommand.productVersion.MajorVersion2 = this.ParseToByteArray(_currentVersion.MajorVersion2);
                _getRunningServersCommand.productVersion.MinorVersion1 = this.ParseToByteArray(_currentVersion.MinorVersion1);
                _getRunningServersCommand.productVersion.MinorVersion2 = this.ParseToByteArray(_currentVersion.MinorVersion2);
                _getRunningServersCommand.productVersion.ProductName = _currentVersion.ProductName;
        }
Exemplo n.º 2
0
        public GetRunningServersCommand(string id)
        {
            base.name                         = "GetRunningServersCommand";
            _currentVersion                   = Alachisoft.NCache.Common.ProductVersion.ProductInfo;
            _getRunningServersCommand         = new Alachisoft.NCache.Common.Protobuf.GetRunningServersCommand();
            _getRunningServersCommand.cacheId = id;

            _getRunningServersCommand.isDotnetClient = true;
            _getRunningServersCommand.requestId      = base.RequestId;


            if (_getRunningServersCommand.productVersion == null)
            {
                _getRunningServersCommand.productVersion = new Common.Protobuf.ProductVersion();
            }

            _getRunningServersCommand.productVersion.AddiotionalData = _currentVersion.AdditionalData;
            _getRunningServersCommand.productVersion.EditionID       = _currentVersion.EditionID;
            _getRunningServersCommand.productVersion.MajorVersion1   = this.ParseToByteArray(_currentVersion.MajorVersion1);
            _getRunningServersCommand.productVersion.MajorVersion2   = this.ParseToByteArray(_currentVersion.MajorVersion2);
            _getRunningServersCommand.productVersion.MinorVersion1   = this.ParseToByteArray(_currentVersion.MinorVersion1);
            _getRunningServersCommand.productVersion.MinorVersion2   = this.ParseToByteArray(_currentVersion.MinorVersion2);
            _getRunningServersCommand.productVersion.ProductName     = _currentVersion.ProductName;
        }