ClientConfig.cs 252 B

12345678910111213141516171819
  1. using MongoDB.Bson.Serialization.Attributes;
  2. namespace Model
  3. {
  4. public class ClientConfig
  5. {
  6. public string Host = "";
  7. public int Port;
  8. [BsonIgnore]
  9. public string Address
  10. {
  11. get
  12. {
  13. return $"{this.Host}:{this.Port}";
  14. }
  15. }
  16. }
  17. }