Refactor: standardize namespace and using directive style

Refactored all C# test files to use explicit namespace declarations and moved all using directives inside the namespace block for consistency. Updated assembly info and cache files to reflect the new build. Adjusted MvcTestingAppManifest.json to use fully qualified assembly names. No functional changes; all updates are related to code style, organization, and project metadata.
This commit is contained in:
2026-02-20 16:26:53 -05:00
parent 44ab9e1d6d
commit af1152b001
1436 changed files with 36615 additions and 15508 deletions
@@ -2,12 +2,12 @@
// Copyright (c) PlaceholderCompany. All rights reserved.
// </copyright>
#nullable disable
using System;
namespace MediaBrowser.Common.Configuration
{
#nullable disable
using System;
/// <summary>
/// Describes a single entry in the application configuration.
/// </summary>
@@ -2,10 +2,10 @@
// Copyright (c) PlaceholderCompany. All rights reserved.
// </copyright>
using System;
namespace MediaBrowser.Common.Configuration
{
using System;
/// <summary>
/// <see cref="EventArgs" /> for the ConfigurationUpdated event.
/// </summary>
@@ -2,12 +2,12 @@
// Copyright (c) PlaceholderCompany. All rights reserved.
// </copyright>
using System;
using System.IO;
using MediaBrowser.Model.Configuration;
namespace MediaBrowser.Common.Configuration
{
using System;
using System.IO;
using MediaBrowser.Model.Configuration;
/// <summary>
/// Class containing extension methods for working with the encoding configuration.
/// </summary>
@@ -2,10 +2,10 @@
// Copyright (c) PlaceholderCompany. All rights reserved.
// </copyright>
using System.Collections.Generic;
namespace MediaBrowser.Common.Configuration
{
using System.Collections.Generic;
/// <summary>
/// Provides an interface to retrieve a configuration store. Classes with this interface are scanned for at
/// application start to dynamically register configuration for various modules/plugins.
+4 -4
View File
@@ -2,12 +2,12 @@
// Copyright (c) PlaceholderCompany. All rights reserved.
// </copyright>
using System;
using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
namespace MediaBrowser.Common.Events
{
using System;
using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
/// <summary>
/// Class EventHelper.
/// </summary>
@@ -2,13 +2,13 @@
// Copyright (c) PlaceholderCompany. All rights reserved.
// </copyright>
using System;
using System.Security.Cryptography;
using System.Text;
using System.Text.RegularExpressions;
namespace MediaBrowser.Common.Extensions
{
using System;
using System.Security.Cryptography;
using System.Text;
using System.Text.RegularExpressions;
/// <summary>
/// Class BaseExtensions.
/// </summary>
@@ -2,11 +2,11 @@
// Copyright (c) PlaceholderCompany. All rights reserved.
// </copyright>
using System.Net;
using Microsoft.AspNetCore.Http;
namespace MediaBrowser.Common.Extensions
{
using System.Net;
using Microsoft.AspNetCore.Http;
/// <summary>
/// Static class containing extension methods for <see cref="HttpContext"/>.
/// </summary>
@@ -2,10 +2,10 @@
// Copyright (c) PlaceholderCompany. All rights reserved.
// </copyright>
using System;
namespace MediaBrowser.Common.Extensions
{
using System;
/// <summary>
/// Class MethodNotAllowedException.
/// </summary>
@@ -2,13 +2,13 @@
// Copyright (c) PlaceholderCompany. All rights reserved.
// </copyright>
using System;
using System.Diagnostics;
using System.Threading;
using System.Threading.Tasks;
namespace MediaBrowser.Common.Extensions
{
using System;
using System.Diagnostics;
using System.Threading;
using System.Threading.Tasks;
/// <summary>
/// Extension methods for <see cref="Process"/>.
/// </summary>
@@ -2,10 +2,10 @@
// Copyright (c) PlaceholderCompany. All rights reserved.
// </copyright>
using System;
namespace MediaBrowser.Common.Extensions
{
using System;
/// <summary>
/// Class ResourceNotFoundException.
/// </summary>
+2 -2
View File
@@ -2,10 +2,10 @@
// Copyright (c) PlaceholderCompany. All rights reserved.
// </copyright>
using System;
namespace MediaBrowser.Common
{
using System;
/// <summary>
/// Represents errors that occur during interaction with FFmpeg.
/// </summary>
+5 -5
View File
@@ -2,13 +2,13 @@
// Copyright (c) PlaceholderCompany. All rights reserved.
// </copyright>
using System;
using System.Collections.Generic;
using System.Reflection;
using Microsoft.Extensions.DependencyInjection;
namespace MediaBrowser.Common
{
using System;
using System.Collections.Generic;
using System.Reflection;
using Microsoft.Extensions.DependencyInjection;
/// <summary>
/// Delegate used with GetExports{T}.
/// </summary>
+8 -8
View File
@@ -2,16 +2,16 @@
// Copyright (c) PlaceholderCompany. All rights reserved.
// </copyright>
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Net;
using System.Net.NetworkInformation;
using MediaBrowser.Model.Net;
using Microsoft.AspNetCore.Http;
namespace MediaBrowser.Common.Net
{
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Net;
using System.Net.NetworkInformation;
using MediaBrowser.Model.Net;
using Microsoft.AspNetCore.Http;
/// <summary>
/// Interface for the NetworkManager class.
/// </summary>
@@ -2,10 +2,10 @@
// Copyright (c) PlaceholderCompany. All rights reserved.
// </copyright>
using MediaBrowser.Common.Configuration;
namespace MediaBrowser.Common.Net;
using MediaBrowser.Common.Configuration;
/// <summary>
/// Defines the <see cref="NetworkConfigurationExtensions" />.
/// </summary>
@@ -2,11 +2,11 @@
// Copyright (c) PlaceholderCompany. All rights reserved.
// </copyright>
namespace MediaBrowser.Common.Net;
using System.Collections.Generic;
using MediaBrowser.Common.Configuration;
namespace MediaBrowser.Common.Net;
/// <summary>
/// Defines the <see cref="NetworkConfigurationFactory" />.
/// </summary>
@@ -2,10 +2,10 @@
// Copyright (c) PlaceholderCompany. All rights reserved.
// </copyright>
using MediaBrowser.Common.Configuration;
namespace MediaBrowser.Common.Net;
using MediaBrowser.Common.Configuration;
/// <summary>
/// A configuration that stores network related settings.
/// </summary>
+2 -2
View File
@@ -2,10 +2,10 @@
// Copyright (c) PlaceholderCompany. All rights reserved.
// </copyright>
using System.Net;
namespace MediaBrowser.Common.Net;
using System.Net;
/// <summary>
/// Networking constants.
/// </summary>
+2 -2
View File
@@ -2,6 +2,8 @@
// Copyright (c) PlaceholderCompany. All rights reserved.
// </copyright>
namespace MediaBrowser.Common.Net;
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
@@ -12,8 +14,6 @@ using System.Text.RegularExpressions;
using Jellyfin.Extensions;
using MediaBrowser.Model.Net;
namespace MediaBrowser.Common.Net;
/// <summary>
/// Defines the <see cref="NetworkUtils" />.
/// </summary>
@@ -2,10 +2,10 @@
// Copyright (c) PlaceholderCompany. All rights reserved.
// </copyright>
using System;
namespace MediaBrowser.Common.Net;
using System;
/// <summary>
/// Result of <see cref="INetworkManager.ShouldAllowServerAccess" />.
/// </summary>
+7 -7
View File
@@ -2,15 +2,15 @@
// Copyright (c) PlaceholderCompany. All rights reserved.
// </copyright>
#nullable disable
using System;
using System.IO;
using System.Reflection;
using MediaBrowser.Model.Plugins;
namespace MediaBrowser.Common.Plugins
{
#nullable disable
using System;
using System.IO;
using System.Reflection;
using MediaBrowser.Model.Plugins;
/// <summary>
/// Provides a common base class for all plugins.
/// </summary>
@@ -2,11 +2,11 @@
// Copyright (c) PlaceholderCompany. All rights reserved.
// </copyright>
using System;
using MediaBrowser.Model.Plugins;
namespace MediaBrowser.Common.Plugins
{
using System;
using MediaBrowser.Model.Plugins;
/// <summary>
/// Defines the <see cref="IHasPluginConfiguration" />.
/// </summary>
+5 -5
View File
@@ -2,13 +2,13 @@
// Copyright (c) PlaceholderCompany. All rights reserved.
// </copyright>
#nullable disable
using System;
using MediaBrowser.Model.Plugins;
namespace MediaBrowser.Common.Plugins
{
#nullable disable
using System;
using MediaBrowser.Model.Plugins;
/// <summary>
/// Defines the <see cref="IPlugin" />.
/// </summary>
@@ -2,16 +2,16 @@
// Copyright (c) PlaceholderCompany. All rights reserved.
// </copyright>
using System;
using System.Collections.Generic;
using System.Reflection;
using System.Threading.Tasks;
using MediaBrowser.Model.Plugins;
using MediaBrowser.Model.Updates;
using Microsoft.Extensions.DependencyInjection;
namespace MediaBrowser.Common.Plugins
{
using System;
using System.Collections.Generic;
using System.Reflection;
using System.Threading.Tasks;
using MediaBrowser.Model.Plugins;
using MediaBrowser.Model.Updates;
using Microsoft.Extensions.DependencyInjection;
/// <summary>
/// Defines the <see cref="IPluginManager" />.
/// </summary>
+4 -4
View File
@@ -2,12 +2,12 @@
// Copyright (c) PlaceholderCompany. All rights reserved.
// </copyright>
using System;
using System.Collections.Generic;
using MediaBrowser.Model.Plugins;
namespace MediaBrowser.Common.Plugins
{
using System;
using System.Collections.Generic;
using MediaBrowser.Model.Plugins;
/// <summary>
/// Local plugin class.
/// </summary>
@@ -2,13 +2,13 @@
// Copyright (c) PlaceholderCompany. All rights reserved.
// </copyright>
using System;
using System.Collections.Generic;
using System.Text.Json.Serialization;
using MediaBrowser.Model.Plugins;
namespace MediaBrowser.Common.Plugins
{
using System;
using System.Collections.Generic;
using System.Text.Json.Serialization;
using MediaBrowser.Model.Plugins;
/// <summary>
/// Defines a Plugin manifest file.
/// </summary>
@@ -2,11 +2,11 @@
// Copyright (c) PlaceholderCompany. All rights reserved.
// </copyright>
using System;
using System.Diagnostics.CodeAnalysis;
namespace MediaBrowser.Common.Providers
{
using System;
using System.Diagnostics.CodeAnalysis;
/// <summary>
/// Parsers for provider ids.
/// </summary>
@@ -2,10 +2,10 @@
// Copyright (c) PlaceholderCompany. All rights reserved.
// </copyright>
using System;
namespace MediaBrowser.Common;
using System;
/// <summary>
/// Marks a BaseItem as needing custom serialisation from the Data field of the db.
/// </summary>
@@ -2,15 +2,15 @@
// Copyright (c) PlaceholderCompany. All rights reserved.
// </copyright>
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using MediaBrowser.Common.Plugins;
using MediaBrowser.Model.Updates;
namespace MediaBrowser.Common.Updates
{
using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using MediaBrowser.Common.Plugins;
using MediaBrowser.Model.Updates;
/// <summary>
/// Defines the <see cref="IInstallationManager" />.
/// </summary>
@@ -2,13 +2,13 @@
// Copyright (c) PlaceholderCompany. All rights reserved.
// </copyright>
#nullable disable
using System;
using MediaBrowser.Model.Updates;
namespace MediaBrowser.Common.Updates
{
#nullable disable
using System;
using MediaBrowser.Model.Updates;
/// <summary>
/// Defines the <see cref="InstallationEventArgs" />.
/// </summary>
@@ -4,3 +4,4 @@ C:\Projects\pgsql-jellyfin\MediaBrowser.Common\obj\Debug\net10.0\MediaBrowser.Co
E:\Projects\pgsql-jellyfin\MediaBrowser.Common\obj\Debug\net10.0\MediaBrowser.Common.csproj.AssemblyReference.cache
E:\Projects\pgsql-jellyfin\MediaBrowser.Common\obj\Debug\net10.0\MediaBrowser.Common.GeneratedMSBuildEditorConfig.editorconfig
E:\Projects\pgsql-jellyfin\MediaBrowser.Common\obj\Debug\net10.0\MediaBrowser.Common.csproj.CoreCompileInputs.cache
E:\Projects\pgsql-jellyfin\MediaBrowser.Common\obj\Debug\net10.0\MediaBrowser.Common.xml
File diff suppressed because it is too large Load Diff