mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-23 17:24:46 +03:00
Added protobuf support for serializing ServerConfiguration
This commit is contained in:
parent
8b39ed2f63
commit
50f88997ba
@@ -1,12 +1,19 @@
|
||||
|
||||
using ProtoBuf;
|
||||
|
||||
namespace MediaBrowser.Model.Configuration
|
||||
{
|
||||
/// <summary>
|
||||
/// Serves as a common base class for the Server and UI application Configurations
|
||||
/// 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.
|
||||
/// </summary>
|
||||
[ProtoContract, ProtoInclude(50, typeof(ServerConfiguration))]
|
||||
public class BaseApplicationConfiguration
|
||||
{
|
||||
[ProtoMember(1)]
|
||||
public bool EnableDebugLevelLogging { get; set; }
|
||||
|
||||
[ProtoMember(2)]
|
||||
public int HttpServerPortNumber { get; set; }
|
||||
|
||||
public BaseApplicationConfiguration()
|
||||
|
||||
Reference in New Issue
Block a user