Use file-scoped namespaces in Jellyfin.Networking

This commit is contained in:
Patrick Barron 2023-11-30 12:26:37 -05:00
parent 1b821efcf2
commit eea676429b
6 changed files with 1400 additions and 1406 deletions

View File

@ -16,8 +16,8 @@ using MediaBrowser.Controller.Plugins;
using Microsoft.Extensions.Logging;
using Mono.Nat;
namespace Jellyfin.Networking
{
namespace Jellyfin.Networking;
/// <summary>
/// Server entrypoint handling external port forwarding.
/// </summary>
@ -193,4 +193,3 @@ namespace Jellyfin.Networking
_disposed = true;
}
}
}

View File

@ -30,8 +30,8 @@ using System.Net.Sockets;
using System.Threading;
using System.Threading.Tasks;
namespace Jellyfin.Networking.HappyEyeballs
{
namespace Jellyfin.Networking.HappyEyeballs;
/// <summary>
/// Defines the <see cref="HttpClientExtension"/> class.
///
@ -117,4 +117,3 @@ namespace Jellyfin.Networking.HappyEyeballs
}
}
}
}

View File

@ -18,8 +18,8 @@ using static MediaBrowser.Controller.Extensions.ConfigurationExtensions;
using IConfigurationManager = MediaBrowser.Common.Configuration.IConfigurationManager;
using IPNetwork = Microsoft.AspNetCore.HttpOverrides.IPNetwork;
namespace Jellyfin.Networking.Manager
{
namespace Jellyfin.Networking.Manager;
/// <summary>
/// Class to take care of network interface management.
/// </summary>
@ -1123,4 +1123,3 @@ namespace Jellyfin.Networking.Manager
}
}
}
}

View File

@ -3,8 +3,8 @@ using System.Net;
using System.Net.Sockets;
using MediaBrowser.Model.Net;
namespace Jellyfin.Networking.Udp
{
namespace Jellyfin.Networking.Udp;
/// <summary>
/// Factory class to create different kinds of sockets.
/// </summary>
@ -36,4 +36,3 @@ namespace Jellyfin.Networking.Udp
}
}
}
}

View File

@ -11,8 +11,8 @@ using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Logging;
using static MediaBrowser.Controller.Extensions.ConfigurationExtensions;
namespace Jellyfin.Networking.Udp
{
namespace Jellyfin.Networking.Udp;
/// <summary>
/// Provides a Udp Server.
/// </summary>
@ -134,4 +134,3 @@ namespace Jellyfin.Networking.Udp
_disposed = true;
}
}
}

View File

@ -13,8 +13,8 @@ using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Logging;
using IConfigurationManager = MediaBrowser.Common.Configuration.IConfigurationManager;
namespace Jellyfin.Networking
{
namespace Jellyfin.Networking;
/// <summary>
/// Class responsible for registering all UDP broadcast endpoints and their handlers.
/// </summary>
@ -141,4 +141,3 @@ namespace Jellyfin.Networking
_disposed = true;
}
}
}