OuterConfig.cs 353 B

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