/// <summary> /// Initializes a new instance of the <see cref="TerraGrafInformationMessage"/> class. /// </summary> /// <param name="senderId">The sender id.</param> /// <param name="blackHoleContainer">The black hole container.</param> internal TerraGrafInformationMessage(string senderId, BlackHoleContainer blackHoleContainer) : this(senderId) { if (blackHoleContainer == null) { ThrowHelper.ThrowArgumentNullException("blackHoleContainer"); } this.mBlackHoleContainer = blackHoleContainer; }
/// <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; }
/// <summary> /// Initializes a new instance of the <see cref="TerraGrafInformationMessage"/> class. /// </summary> /// <param name="senderId">The sender id.</param> /// <param name="networkInfo">The network info.</param> /// <param name="blackHoleContainer">The black hole container.</param> internal TerraGrafInformationMessage(string senderId, TerraGrafNetworkInformation networkInfo, BlackHoleContainer blackHoleContainer) : this(senderId, blackHoleContainer) { if (networkInfo == null) { ThrowHelper.ThrowArgumentNullException("networkInfo"); } this.mNetworkInfo = networkInfo; }