2012-09-08 20:25:56 +00:00
|
|
|
|
using ProtoBuf;
|
|
|
|
|
|
2012-09-02 13:45:02 +00:00
|
|
|
|
namespace MediaBrowser.Model.Configuration
|
2012-07-21 18:39:47 +00:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2012-07-23 15:05:30 +00:00
|
|
|
|
/// Serves as a common base class for the Server and UI application Configurations
|
2012-09-08 20:25:56 +00:00
|
|
|
|
/// ProtoInclude tells Protobuf about subclasses,
|
|
|
|
|
/// 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.
|
2012-07-21 18:39:47 +00:00
|
|
|
|
/// </summary>
|
2012-09-08 20:25:56 +00:00
|
|
|
|
[ProtoContract, ProtoInclude(50, typeof(ServerConfiguration))]
|
2012-07-29 15:19:25 +00:00
|
|
|
|
public class BaseApplicationConfiguration
|
2012-07-21 18:39:47 +00:00
|
|
|
|
{
|
2012-09-08 20:25:56 +00:00
|
|
|
|
[ProtoMember(1)]
|
2012-09-02 13:45:02 +00:00
|
|
|
|
public bool EnableDebugLevelLogging { get; set; }
|
2012-09-08 20:25:56 +00:00
|
|
|
|
|
|
|
|
|
[ProtoMember(2)]
|
2012-07-21 18:39:47 +00:00
|
|
|
|
public int HttpServerPortNumber { get; set; }
|
|
|
|
|
|
2012-07-29 15:19:25 +00:00
|
|
|
|
public BaseApplicationConfiguration()
|
2012-07-21 18:39:47 +00:00
|
|
|
|
{
|
|
|
|
|
HttpServerPortNumber = 8096;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|