StartConfig.cs 418 B

12345678910111213141516171819202122232425
  1. using System;
  2. using Base;
  3. namespace Model
  4. {
  5. public class StartConfig: ICloneable
  6. {
  7. public Options Options { get; set; }
  8. public string IP { get; set; }
  9. public Entity Config { get; set; }
  10. public StartConfig()
  11. {
  12. this.Options = new Options();
  13. this.Config = new Entity("StartConfig");
  14. }
  15. public object Clone()
  16. {
  17. return MongoHelper.FromJson<StartConfig>(MongoHelper.ToJson(this));
  18. }
  19. }
  20. }