/// <summary> /// Initializes a new instance of the <see cref="TerraGrafInformationMessage"/> class. /// </summary> /// <param name="senderId">The sender id.</param> /// <param name="targetHostRelation">The target host relation.</param> internal TerraGrafInformationMessage(string senderId, PeerRelation targetHostRelation) : this(senderId) { if (targetHostRelation == null) { ThrowHelper.ThrowArgumentNullException("targetHostRelation"); } this.mTargetHostRelation = targetHostRelation; }
/// <summary> /// Initializes a new instance of the <see cref="TerraGrafInformationMessage"/> class. /// </summary> /// <param name="senderId">The sender id.</param> /// <param name="messageId">The message id.</param> /// <param name="networkInfo">The network info.</param> /// <param name="targetHostRelation">The target host relation.</param> /// <param name="blackHoleContainer">The black hole container.</param> internal TerraGrafInformationMessage(string senderId, long messageId, TerraGrafNetworkInformation networkInfo, PeerRelation targetHostRelation, BlackHoleContainer blackHoleContainer) : base(senderId, string.Empty, MessageCodeEnum.TerraGrafInformation, messageId, MessagePriorityEnum.Normal, MessageTypeEnum.Udp) { if (networkInfo == null) { ThrowHelper.ThrowArgumentNullException("networkInfo"); } this.mNetworkInfo = networkInfo; this.mTargetHostRelation = targetHostRelation; this.mBlackHoleContainer = blackHoleContainer; }