aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/ScheduledTasks/ScheduledTaskWorker.cs
AgeCommit message (Collapse)Author
2021-12-27More cleanupBond_009
2021-11-09Fix some warningsBond_009
down to 580
2021-10-02Fix warnings in ScheduledTasksPatrick Barron
2021-08-28Remove more and more warningsCody Robibero
2021-06-19Move non-jellyfin extensions to separate projectBond_009
2021-05-28Fix some warningsBond_009
2021-05-20Enable nullable reference types for Emby.Server.ImplementationsBond_009
2021-05-05Code Clean up: Convert to null-coalescing operator ?? (#5845)BaronGreenback
Co-authored-by: Cody Robibero <cody@robibe.ro> Co-authored-by: Patrick Barron <18354464+barronpm@users.noreply.github.com>
2021-05-05Code Clean up: Use Pattern Matching (#5838)BaronGreenback
Co-authored-by: Cody Robibero <cody@robibe.ro> Co-authored-by: Patrick Barron <18354464+barronpm@users.noreply.github.com>
2021-04-17Remove unused using directivesBaronGreenback
2021-04-10Use sync Serialize when writing scheduled tasks to diskcvium
2021-03-13FxCop -> Net Analyzers (part 2)Bond_009
2021-02-05Merge pull request #5005 from jellyfin/bytesdkanada
JsonSerializer deserialize from bytes where possible
2021-01-12Open FileStream with FileMode.Create instead of FileMode.OpenOrCreateBond_009
> The OpenWrite method opens a file if one already exists for the file path, or creates a new file if one does not exist. For an existing file, it does not append the new text to the existing text. Instead, it overwrites the existing characters with the new characters. If you overwrite a longer string (such as "This is a test of the OpenWrite method") with a shorter string (such as "Second run"), the file will contain a mix of the strings ("Second runtest of the OpenWrite method"). Ref: https://docs.microsoft.com/en-us/dotnet/api/system.io.file.openwrite?view=net-5.0#remarks
2021-01-12JsonSerializer deserialize from bytes where possibleBond_009
This is faster and uses way less 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 | |------- |---------:|--------:|--------:|--------:|------:|------:|----------:| | Bytes | 158.4 us | 2.56 us | 2.14 us | 16.8457 | - | - | 52.08 KB | | String | 172.8 us | 0.78 us | 0.70 us | 41.5039 | - | - | 127.82 KB | | Custom | 155.5 us | 2.95 us | 2.76 us | 10.0098 | - | - | 31.27 KB | ```
2020-12-29Use UTF8 encoding and async correctlyDavid
2020-12-27Code revieDavid
2020-12-24Put json serializer options in private fieldDavid
2020-12-24Use sync string instead of fileDavid
2020-12-23Use streams instead of stringsDavid
2020-12-23Remove xml docsDavid
2020-12-23Remove custom Json serializer from Emby.Server.ImplementationsDavid
2020-11-14Replace Task.WaitAll with Task.WaitBond_009
2020-10-17Use nameof where possibleBond_009
2020-08-24Merge branch 'master' into event-rewrite-1Patrick Barron
# Conflicts: # Emby.Dlna/Emby.Dlna.csproj # Emby.Dlna/Eventing/DlnaEventManager.cs # Emby.Dlna/Service/BaseService.cs # Emby.Server.Implementations/ScheduledTasks/ScheduledTaskWorker.cs # MediaBrowser.Controller/Subtitles/SubtitleDownloadEventArgs.cs
2020-08-20Make MediaBrowser.MediaEncoding warnings freeBond_009
2020-08-13Move GenericEventArgs to Jellyfin.Data.EventsPatrick Barron
2020-06-16Merge pull request #3343 from telans/comment-stopsBond-009
Add full stop at end of comments (SA1629)
2020-06-16fix SA1513/SA1516telans
2020-06-16Add full stop at end of comments (SA1629)telans
2020-06-03Merge pull request #3203 from Bond-009/warn18Vasily
Enable TreatWarningsAsErrors for Jellyfin.Server.Implementations in Release mode
2020-05-29Enable TreatWarningsAsErrors for Jellyfin.Server.Implementations in Release modeBond_009
2020-04-05Enable nullabe reference types for MediaBrowser.ModelBond_009
2019-11-22Fix some warningsBond-009
2019-08-09Use CultureInvariant string conversion for GuidsBond-009
2019-01-30Merge branch 'master' into startuptasksBond-009
2019-01-28Unwrapped CreateDirectory and DeleteDirectoryErwin de Haan
2019-01-28Unwrapped GetDirectoryName and DirectorySeperatorCharErwin de Haan
2019-01-27Fix crash when trying to deserialize a non-existing scheduled taskClaus Vium
2019-01-27Check if file exists instead of catching exceptionsBond_009
2019-01-27Remove unused functionBond_009
RunStartupTasks never executes because "startuptasks.txt" is never created
2019-01-25Remove remnants of system eventsBond_009
2019-01-13ReSharper conform to 'var' settingsErwin de Haan
2019-01-13Visual Studio Reformat: Emby.Server.Implementations Part S-SErwin de Haan
2019-01-12Fixed removed start tag of XMLComment.Erwin de Haan
2019-01-12Reformatted the files with notes.Erwin 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.
2019-01-05Remove unnecessary using statementsBond_009
2019-01-05Remove FireEventIfNotNullBond_009
It's a pretty useless "helper" class
2018-12-30Fix exception loggingBond_009