OuterConfig.cs 318 B

1234567891011121314151617181920
  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. [BsonIgnore]
  10. public string Address
  11. {
  12. get
  13. {
  14. return $"{this.Host}:{this.Port}";
  15. }
  16. }
  17. }
  18. }