AConfigComponent.cs 400 B

12345678910111213141516
  1. using MongoDB.Bson.Serialization.Attributes;
  2. namespace Model
  3. {
  4. /// <summary>
  5. /// 每个Config的基类
  6. /// </summary>
  7. [BsonKnownTypes(typeof (ClientConfig))]
  8. [BsonKnownTypes(typeof (InnerConfig))]
  9. [BsonKnownTypes(typeof (OuterConfig))]
  10. [BsonKnownTypes(typeof (HttpConfig))]
  11. [BsonKnownTypes(typeof (DBConfig))]
  12. public abstract class AConfigComponent: Component, ISerializeToEntity
  13. {
  14. }
  15. }