2
0

BaseApplicationConfiguration.cs 800 B

123456789101112131415161718192021222324
  1. using ProtoBuf;
  2. namespace MediaBrowser.Model.Configuration
  3. {
  4. /// <summary>
  5. /// Serves as a common base class for the Server and UI application Configurations
  6. /// ProtoInclude tells Protobuf about subclasses,
  7. /// The number 50 can be any number, so long as it doesn't clash with any of the ProtoMember numbers either here or in subclasses.
  8. /// </summary>
  9. [ProtoContract, ProtoInclude(50, typeof(ServerConfiguration))]
  10. public class BaseApplicationConfiguration
  11. {
  12. [ProtoMember(1)]
  13. public bool EnableDebugLevelLogging { get; set; }
  14. [ProtoMember(2)]
  15. public int HttpServerPortNumber { get; set; }
  16. public BaseApplicationConfiguration()
  17. {
  18. HttpServerPortNumber = 8096;
  19. }
  20. }
  21. }