19 lines
374 B
C#
19 lines
374 B
C#
|
using System.Net;
|
|||
|
using MongoDB.Bson.Serialization.Attributes;
|
|||
|
|
|||
|
namespace ET
|
|||
|
{
|
|||
|
[BsonIgnoreExtraElements]
|
|||
|
public class InnerConfig: AConfigComponent
|
|||
|
{
|
|||
|
[BsonIgnore]
|
|||
|
public IPEndPoint IPEndPoint { get; private set; }
|
|||
|
|
|||
|
public string Address { get; set; }
|
|||
|
|
|||
|
public override void EndInit()
|
|||
|
{
|
|||
|
this.IPEndPoint = NetworkHelper.ToIPEndPoint(this.Address);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|