ClientConfig.cs 302 B

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