InnerConfig.cs 379 B

12345678910111213141516171819
  1. using System.Net;
  2. using MongoDB.Bson.Serialization.Attributes;
  3. namespace ETModel
  4. {
  5. [BsonIgnoreExtraElements]
  6. public class InnerConfig: AConfigComponent
  7. {
  8. [BsonIgnore]
  9. public IPEndPoint IPEndPoint { get; private set; }
  10. public string Address { get; set; }
  11. public override void EndInit()
  12. {
  13. this.IPEndPoint = NetworkHelper.ToIPEndPoint(this.Address);
  14. }
  15. }
  16. }