zxl
/
CTT
forked from Cal/CTT
1
0
Fork 0
CTT/Unity/Assets/Model/Component/Config/InnerConfig.cs

19 lines
374 B
C#
Raw Normal View History

2021-04-08 20:09:59 +08:00
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);
}
}
}