Use target-typed new for fields

pull/10592/head
Patrick Barron 1 year ago
parent 8eb2fa53b5
commit 98f8cb2ad0

@ -34,17 +34,13 @@ namespace Emby.Server.Implementations.EntryPoints
private readonly IUserManager _userManager; private readonly IUserManager _userManager;
private readonly ILogger<LibraryChangedNotifier> _logger; private readonly ILogger<LibraryChangedNotifier> _logger;
/// <summary> private readonly object _libraryChangedSyncLock = new();
/// The library changed sync lock. private readonly List<Folder> _foldersAddedTo = new();
/// </summary> private readonly List<Folder> _foldersRemovedFrom = new();
private readonly object _libraryChangedSyncLock = new object(); private readonly List<BaseItem> _itemsAdded = new();
private readonly List<BaseItem> _itemsRemoved = new();
private readonly List<Folder> _foldersAddedTo = new List<Folder>(); private readonly List<BaseItem> _itemsUpdated = new();
private readonly List<Folder> _foldersRemovedFrom = new List<Folder>(); private readonly ConcurrentDictionary<Guid, DateTime> _lastProgressMessageTimes = new();
private readonly List<BaseItem> _itemsAdded = new List<BaseItem>();
private readonly List<BaseItem> _itemsRemoved = new List<BaseItem>();
private readonly List<BaseItem> _itemsUpdated = new List<BaseItem>();
private readonly ConcurrentDictionary<Guid, DateTime> _lastProgressMessageTimes = new ConcurrentDictionary<Guid, DateTime>();
public LibraryChangedNotifier( public LibraryChangedNotifier(
ILibraryManager libraryManager, ILibraryManager libraryManager,

Loading…
Cancel
Save