public GetOptimalServerCommand(string id) { _currentVersion = Alachisoft.NCache.Common.ProductVersion.ProductInfo; base.name = "GetOptimalServerCommand"; _getOptimalServerCommand = new Alachisoft.NCache.Common.Protobuf.GetOptimalServerCommand(); _getOptimalServerCommand.cacheId = id; _getOptimalServerCommand.isDotnetClient = true; _getOptimalServerCommand.requestId = base.RequestId; if (_getOptimalServerCommand.productVersion == null) _getOptimalServerCommand.productVersion = new Common.Protobuf.ProductVersion(); _getOptimalServerCommand.productVersion.AddiotionalData = _currentVersion.AdditionalData; _getOptimalServerCommand.productVersion.EditionID = _currentVersion.EditionID; _getOptimalServerCommand.productVersion.MajorVersion1 = this.ParseToByteArray(_currentVersion.MajorVersion1); _getOptimalServerCommand.productVersion.MajorVersion2 = this.ParseToByteArray(_currentVersion.MajorVersion2); _getOptimalServerCommand.productVersion.MinorVersion1 = this.ParseToByteArray(_currentVersion.MinorVersion1); _getOptimalServerCommand.productVersion.MinorVersion2 = this.ParseToByteArray(_currentVersion.MinorVersion2); _getOptimalServerCommand.productVersion.ProductName = _currentVersion.ProductName; }
public GetOptimalServerCommand(string id) { _currentVersion = Alachisoft.NCache.Common.ProductVersion.ProductInfo; base.name = "GetOptimalServerCommand"; _getOptimalServerCommand = new Alachisoft.NCache.Common.Protobuf.GetOptimalServerCommand(); _getOptimalServerCommand.cacheId = id; _getOptimalServerCommand.isDotnetClient = true; _getOptimalServerCommand.requestId = base.RequestId; if (_getOptimalServerCommand.productVersion == null) { _getOptimalServerCommand.productVersion = new Common.Protobuf.ProductVersion(); } _getOptimalServerCommand.productVersion.AddiotionalData = _currentVersion.AdditionalData; _getOptimalServerCommand.productVersion.EditionID = _currentVersion.EditionID; _getOptimalServerCommand.productVersion.MajorVersion1 = this.ParseToByteArray(_currentVersion.MajorVersion1); _getOptimalServerCommand.productVersion.MajorVersion2 = this.ParseToByteArray(_currentVersion.MajorVersion2); _getOptimalServerCommand.productVersion.MinorVersion1 = this.ParseToByteArray(_currentVersion.MinorVersion1); _getOptimalServerCommand.productVersion.MinorVersion2 = this.ParseToByteArray(_currentVersion.MinorVersion2); _getOptimalServerCommand.productVersion.ProductName = _currentVersion.ProductName; }