aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Library/MediaSourceManager.cs
AgeCommit message (Collapse)Author
2021-03-13FxCop -> Net Analyzers (part 2)Bond_009
2021-01-12Use JsonSerializer.SerializeToUtf8Bytes when doing a round tripBond_009
This test uses a very small object (CountryInfo), using a bigger object would increase the difference in allocated memory. ``` BenchmarkDotNet=v0.12.1, OS=fedora 32 Intel Core i7-6700HQ CPU 2.60GHz (Skylake), 1 CPU, 8 logical and 4 physical cores .NET Core SDK=5.0.100 [Host] : .NET Core 5.0.0 (CoreCLR 5.0.20.51904, CoreFX 5.0.20.51904), X64 RyuJIT DefaultJob : .NET Core 5.0.0 (CoreCLR 5.0.20.51904, CoreFX 5.0.20.51904), X64 RyuJIT | Method | Mean | Error | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated | |---------------- |-----------:|---------:|---------:|-------:|------:|------:|----------:| | RoundTripBytes | 932.0 ns | 5.09 ns | 4.25 ns | 0.1173 | - | - | 368 B | | RoundTripString | 1,114.8 ns | 22.19 ns | 23.74 ns | 0.1469 | - | - | 464 B | ```
2020-12-24Put json serializer options in private fieldDavid
2020-12-23Use streams instead of stringsDavid
2020-12-23Remove custom Json serializer from Emby.Server.ImplementationsDavid
2020-11-14Use string.Split(char) where possible instead of string.Split(char[])Bond_009
2020-09-23Don't take a lock if there's no intention to manipulate the list of open ↵Ryan Petris
streams. Instead, use a ConcurrentDictionary so that, in those situations, thread-safe access to the dictionary is ensured.
2020-07-24Fix warningsBond_009
2020-07-20Fix warningsBond_009
2020-06-16fix SA1513/SA1516telans
2020-06-15fix SA1508telans
2020-06-15fix SA1005telans
2020-06-15fix SA1510telans
2020-06-13Merge branch 'master' into userdb-efcorePatrick Barron
# Conflicts: # Emby.Server.Implementations/Library/UserManager.cs # Jellyfin.Data/Jellyfin.Data.csproj
2020-06-05Use typed logger where possiblecrobibero
2020-06-04Merge branch 'master' into userdb-efcorePatrick Barron
# Conflicts: # Emby.Server.Implementations/EntryPoints/ServerEventNotifier.cs # Emby.Server.Implementations/Library/UserManager.cs # Emby.Server.Implementations/Sorting/IsFavoriteOrLikeComparer.cs # Emby.Server.Implementations/Sorting/IsPlayedComparer.cs # Emby.Server.Implementations/Sorting/IsUnplayedComparer.cs # Emby.Server.Implementations/TV/TVSeriesManager.cs # Jellyfin.Server.Implementations/Users/DefaultAuthenticationProvider.cs
2020-05-27Merge branch 'master' into nullable3Bond_009
2020-05-20Remove redundant qualifiersPatrick Barron
2020-05-12Initial migration codePatrick Barron
2020-04-05Enable nullabe reference types for MediaBrowser.ModelBond_009
2020-04-04Register and construct IMediaSourceManager correctlyMark Monteiro
2020-02-23Fix some warningsBond_009
* Add analyzers to MediaBrowser.XbmcMetadata * Enable TreatWarningsAsErrors for MediaBrowser.XbmcMetadata * Add analyzers to MediaBrowser.WebDashboard * Enable TreatWarningsAsErrors for MediaBrowser.WebDashboard * Disable SA1600 in favor of CS1591
2020-01-13Merge pull request #2096 from Bond-009/embytvdkanada
Clean up Emby.Server.Implementations/LiveTv/EmbyTV/EmbyTV.cs
2020-01-10Merge branch 'master' into warn12Bond_009
2020-01-10Merge branch 'master' into embytvBond_009
2020-01-08Fix build and address commentsBond_009
2020-01-08merge branch master into media-attachmentsdkanada
2019-12-11More warnings (removed)Bond_009
2019-12-04Clean up Emby.Server.Implementations/LiveTv/EmbyTV/EmbyTV.csBond_009
2019-11-27Fix more warningsBond_009
2019-11-07Update Emby.Server.Implementations/Library/MediaSourceManager.cs Andrew Mahone
docs Co-Authored-By: Bond-009 <bond.009@outlook.com>
2019-11-07Update Emby.Server.Implementations/Library/MediaSourceManager.cs Andrew Mahone
docs Co-Authored-By: Bond-009 <bond.009@outlook.com>
2019-11-07Update Emby.Server.Implementations/Library/MediaSourceManager.cs Andrew Mahone
docs Co-Authored-By: Bond-009 <bond.009@outlook.com>
2019-11-04Return list result directly for MediaAttachments.Andrew Mahone
2019-11-04Merge remote-tracking branch 'origin/master' into media-attachments-cleanAndrew Mahone
2019-10-29Fix more warningsBond_009
2019-10-22Support MediaAttachment retrieval in MediaSourceManager.Andrew Mahone
2019-08-09Use CultureInvariant string conversion for GuidsBond-009
2019-02-05Remove custom ThreadingClaus Vium
2019-01-31Merge branch 'master' into localeBond-009
2019-01-28Unwrapped CreateDirectory and DeleteDirectoryErwin de Haan
2019-01-28Unwrapped GetDirectoryName and DirectorySeperatorCharErwin de Haan
2019-01-27Reworked LocalizationManager to load data asyncBond_009
2019-01-22Remove conditions that are always true/falseBond_009
2019-01-20Replaced injections of ILogger with ILoggerFactoryWilliam Taylor
This makes resolving dependencies from the container much easier as you cannot resolve with primitives parameters in a way that is any more readable. The aim of this commit is to change as little as possible with the end result, loggers that were newed up for the parent object were given the same name. Objects that used the base or app loggers, were given a new logger with an appropriate name. Also removed some unused dependencies.
2019-01-17Reformat JustAMan review pt1 changesErwin de Haan
Refs #575
2019-01-13ReSharper format: conform inline 'out' parameters.Erwin de Haan
2019-01-13ReSharper conform to 'var' settingsErwin de Haan
2019-01-13Visual Studio Reformat: Emby.Server.Implementations Part I-LibErwin de Haan
2019-01-10Mayor code cleanupErwin de Haan
Add Argument*Exceptions now use proper nameof operators. Added exception messages to quite a few Argument*Exceptions. Fixed rethorwing to be proper syntax. Added a ton of null checkes. (This is only a start, there are about 500 places that need proper null handling) Added some TODOs to log certain exceptions. Fix sln again. Fixed all AssemblyInfo's and added proper copyright (where I could find them) We live in *current year*. Fixed the use of braces. Fixed a ton of properties, and made a fair amount of functions static that should be and can be static. Made more Methods that should be static static. You can now use static to find bad functions! Removed unused variable. And added one more proper XML comment.