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