mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-06-23 15:30:56 -04:00
copy constructor
This commit is contained in:
parent
dae6798a18
commit
21f6d39432
@ -51,8 +51,10 @@ namespace Emby.Server.Implementations.Plugins
|
|||||||
_logger = logger ?? throw new ArgumentNullException(nameof(logger));
|
_logger = logger ?? throw new ArgumentNullException(nameof(logger));
|
||||||
_pluginsPath = pluginsPath;
|
_pluginsPath = pluginsPath;
|
||||||
_appVersion = appVersion ?? throw new ArgumentNullException(nameof(appVersion));
|
_appVersion = appVersion ?? throw new ArgumentNullException(nameof(appVersion));
|
||||||
_jsonOptions = JsonDefaults.GetOptions();
|
_jsonOptions = new JsonSerializerOptions(JsonDefaults.GetOptions())
|
||||||
_jsonOptions.WriteIndented = true;
|
{
|
||||||
|
WriteIndented = true
|
||||||
|
};
|
||||||
|
|
||||||
// We need to use the default GUID converter, so we need to remove any custom ones.
|
// We need to use the default GUID converter, so we need to remove any custom ones.
|
||||||
for (int a = _jsonOptions.Converters.Count - 1; a >= 0; a--)
|
for (int a = _jsonOptions.Converters.Count - 1; a >= 0; a--)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user