Bond-009
92f6e19a25
Enable nullable for more files ( #9310 )
2 years ago
Bond_009
52194f56b5
Replace != null with is not null
2 years ago
Bond_009
c7d50d640e
Replace == null with is null
2 years ago
Bond_009
a9a5fcde81
Use ArgumentNullException.ThrowIfNull helper method
...
Did a simple search/replace on the whole repo (except the RSSDP project)
This reduces LOC and should improve performance (methods containing a throw statement don't get inlined)
```
if \((\w+) == null\)
\s+\{
\s+throw new ArgumentNullException\((.*)\);
\s+\}
```
```
ArgumentNullException.ThrowIfNull($1);
```
2 years ago
Bond_009
5036afd691
Minor cleanup
2 years ago
Cody Robibero
7424f0ca8c
Merge pull request #7561 from DMouse10462/named-config-api-fix
...
Fix NamedConfiguration API Generation
(cherry picked from commit d7c548f3db
)
Signed-off-by: Joshua Boniface <joshua@boniface.me>
3 years ago
Bond_009
ea8f40e84a
More cleanup
3 years ago
cvium
76c2775d8c
Use static lambdas
3 years ago
Bond-009
cfad97ff28
Merge pull request #6096 from cvium/saving_private_ram
3 years ago
Bond_009
0bc0601442
Fix some warnings
3 years ago
cvium
42a2cc1747
Remove some unnecessary allocations
4 years ago
Bond_009
7e8428e588
Enable nullable reference types for Emby.Server.Implementations
4 years ago
BaronGreenback
caea2bb862
Update Emby.Server.Implementations/AppBase/BaseConfigurationManager.cs
...
Co-authored-by: Bond-009 <bond.009@outlook.com>
4 years ago
BaronGreenback
69790ef6b8
Update Emby.Server.Implementations/AppBase/BaseConfigurationManager.cs
...
Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
4 years ago
BaronGreenback
a8cee0bd36
Update Emby.Server.Implementations/AppBase/BaseConfigurationManager.cs
...
Co-authored-by: Cody Robibero <cody@robibe.ro>
4 years ago
BaronGreenback
002190f0a3
Update Emby.Server.Implementations/AppBase/BaseConfigurationManager.cs
...
Co-authored-by: Cody Robibero <cody@robibe.ro>
4 years ago
BaronGreenback
0e872ca65c
Update Emby.Server.Implementations/AppBase/BaseConfigurationManager.cs
...
Co-authored-by: Cody Robibero <cody@robibe.ro>
4 years ago
BaronGreenback
387fdb0f13
Update Emby.Server.Implementations/AppBase/BaseConfigurationManager.cs
...
Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
4 years ago
BaronGreenback
ed05ae683e
Update Emby.Server.Implementations/AppBase/BaseConfigurationManager.cs
...
Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
4 years ago
Greenback
0b73a1d90f
Added extra functionality to support registrar.
4 years ago
Bond_009
e653eef44f
Fix some warnings
4 years ago
crobibero
44957c5a9a
Use typed logger where possible
4 years ago
dkanada
67922dff50
Merge pull request #2041 from Bond-009/warn11
...
Fix more warnings
5 years ago
Bond-009
affb58ef9e
Apply suggestions from code review
...
Co-Authored-By: dkanada <dkanada@users.noreply.github.com>
5 years ago
Bond_009
4a0df15bbd
Fix GetTranscodePath function and cache path update logline
...
* GetTranscodePath returned an empty string after the option was left
blank in the web UI
* Unified the log style for all paths
5 years ago
Bond_009
42ffddc269
Fix more warnings
5 years ago
Joshua M. Boniface
48120d01dc
Merge pull request #1991 from Bond-009/transtemp
...
Don't append transcodes to transcoding temp path
5 years ago
Bond-009
b477b3874e
Fix some warnings
5 years ago
Bond-009
d4b438791f
Don't append transcodes to transcoding temp path
5 years ago
Bond_009
3f7836d9eb
Update deps and add MultiThreading analyzer
5 years ago
Bond_009
25917db07a
Fix doc releated warnings
5 years ago
Bond-009
bdfd042d70
Merge branch 'master' into fields
6 years ago
Joshua Boniface
382b8bb509
Use Path.Combine
6 years ago
Joshua Boniface
74d2698c5f
Fix poor handling of cache directories
6 years ago
Bond_009
a6a4cd5667
Removed some unused fields
6 years ago
Bond-009
1ea219bf3f
Merge branch 'master' into culture
6 years ago
Erwin de Haan
838541b825
Removed loose whitespace and one .ToArray() call.
6 years ago
Erwin de Haan
1d1d7e8a37
Fixed inlining local-variable artifact.
6 years ago
Erwin de Haan
b9a111432a
Unwrapped all /(Write|Read)All(Text|Bytes)/ functions.
6 years ago
Erwin de Haan
581a7fe078
Unwrapped `MoveDirectory`, `DirectoryExists`, `FileExists` & removed `MoveFile`
6 years ago
Erwin de Haan
d7c6d16250
Unwrapped CreateDirectory and DeleteDirectory
6 years ago
Erwin de Haan
3a831994f6
Unwrapped GetDirectoryName and DirectorySeperatorChar
6 years ago
Bond_009
ffe79c8982
Check if file exists instead of catching exceptions
6 years ago
Bond_009
a709cbdc64
Fix more analyzer warnings
6 years ago
Erwin de Haan
65bd052f3e
ReSharper conform to 'var' settings
6 years ago
Erwin de Haan
a5288115a8
Visual Studio Reformat: Emby.Server.Implementations Part A-Da
6 years ago
Erwin de Haan
ec1f5dc317
Mayor code cleanup
...
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.
6 years ago
Bond_009
391b48614d
Remove FireEventIfNotNull
...
It's a pretty useless "helper" class
6 years ago
Bond_009
ea4c914123
Fix exception logging
6 years ago
Bond_009
a8fde5e89c
Readded some stuff
6 years ago