mirror of
				https://github.com/jellyfin/jellyfin.git
				synced 2025-11-04 03:27:21 -05:00 
			
		
		
		
	Use file-scoped namespaces in Jellyfin.Networking
This commit is contained in:
		
							parent
							
								
									1b821efcf2
								
							
						
					
					
						commit
						eea676429b
					
				@ -16,8 +16,8 @@ using MediaBrowser.Controller.Plugins;
 | 
				
			|||||||
using Microsoft.Extensions.Logging;
 | 
					using Microsoft.Extensions.Logging;
 | 
				
			||||||
using Mono.Nat;
 | 
					using Mono.Nat;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace Jellyfin.Networking
 | 
					namespace Jellyfin.Networking;
 | 
				
			||||||
{
 | 
					
 | 
				
			||||||
/// <summary>
 | 
					/// <summary>
 | 
				
			||||||
/// Server entrypoint handling external port forwarding.
 | 
					/// Server entrypoint handling external port forwarding.
 | 
				
			||||||
/// </summary>
 | 
					/// </summary>
 | 
				
			||||||
@ -193,4 +193,3 @@ namespace Jellyfin.Networking
 | 
				
			|||||||
        _disposed = true;
 | 
					        _disposed = true;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
				
			|||||||
@ -30,8 +30,8 @@ using System.Net.Sockets;
 | 
				
			|||||||
using System.Threading;
 | 
					using System.Threading;
 | 
				
			||||||
using System.Threading.Tasks;
 | 
					using System.Threading.Tasks;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace Jellyfin.Networking.HappyEyeballs
 | 
					namespace Jellyfin.Networking.HappyEyeballs;
 | 
				
			||||||
{
 | 
					
 | 
				
			||||||
/// <summary>
 | 
					/// <summary>
 | 
				
			||||||
/// Defines the <see cref="HttpClientExtension"/> class.
 | 
					/// Defines the <see cref="HttpClientExtension"/> class.
 | 
				
			||||||
///
 | 
					///
 | 
				
			||||||
@ -117,4 +117,3 @@ namespace Jellyfin.Networking.HappyEyeballs
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
				
			|||||||
@ -18,8 +18,8 @@ using static MediaBrowser.Controller.Extensions.ConfigurationExtensions;
 | 
				
			|||||||
using IConfigurationManager = MediaBrowser.Common.Configuration.IConfigurationManager;
 | 
					using IConfigurationManager = MediaBrowser.Common.Configuration.IConfigurationManager;
 | 
				
			||||||
using IPNetwork = Microsoft.AspNetCore.HttpOverrides.IPNetwork;
 | 
					using IPNetwork = Microsoft.AspNetCore.HttpOverrides.IPNetwork;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace Jellyfin.Networking.Manager
 | 
					namespace Jellyfin.Networking.Manager;
 | 
				
			||||||
{
 | 
					
 | 
				
			||||||
/// <summary>
 | 
					/// <summary>
 | 
				
			||||||
/// Class to take care of network interface management.
 | 
					/// Class to take care of network interface management.
 | 
				
			||||||
/// </summary>
 | 
					/// </summary>
 | 
				
			||||||
@ -1123,4 +1123,3 @@ namespace Jellyfin.Networking.Manager
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
				
			|||||||
@ -3,8 +3,8 @@ using System.Net;
 | 
				
			|||||||
using System.Net.Sockets;
 | 
					using System.Net.Sockets;
 | 
				
			||||||
using MediaBrowser.Model.Net;
 | 
					using MediaBrowser.Model.Net;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace Jellyfin.Networking.Udp
 | 
					namespace Jellyfin.Networking.Udp;
 | 
				
			||||||
{
 | 
					
 | 
				
			||||||
/// <summary>
 | 
					/// <summary>
 | 
				
			||||||
/// Factory class to create different kinds of sockets.
 | 
					/// Factory class to create different kinds of sockets.
 | 
				
			||||||
/// </summary>
 | 
					/// </summary>
 | 
				
			||||||
@ -36,4 +36,3 @@ namespace Jellyfin.Networking.Udp
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
				
			|||||||
@ -11,8 +11,8 @@ using Microsoft.Extensions.Configuration;
 | 
				
			|||||||
using Microsoft.Extensions.Logging;
 | 
					using Microsoft.Extensions.Logging;
 | 
				
			||||||
using static MediaBrowser.Controller.Extensions.ConfigurationExtensions;
 | 
					using static MediaBrowser.Controller.Extensions.ConfigurationExtensions;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace Jellyfin.Networking.Udp
 | 
					namespace Jellyfin.Networking.Udp;
 | 
				
			||||||
{
 | 
					
 | 
				
			||||||
/// <summary>
 | 
					/// <summary>
 | 
				
			||||||
/// Provides a Udp Server.
 | 
					/// Provides a Udp Server.
 | 
				
			||||||
/// </summary>
 | 
					/// </summary>
 | 
				
			||||||
@ -134,4 +134,3 @@ namespace Jellyfin.Networking.Udp
 | 
				
			|||||||
        _disposed = true;
 | 
					        _disposed = true;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
				
			|||||||
@ -13,8 +13,8 @@ using Microsoft.Extensions.Configuration;
 | 
				
			|||||||
using Microsoft.Extensions.Logging;
 | 
					using Microsoft.Extensions.Logging;
 | 
				
			||||||
using IConfigurationManager = MediaBrowser.Common.Configuration.IConfigurationManager;
 | 
					using IConfigurationManager = MediaBrowser.Common.Configuration.IConfigurationManager;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace Jellyfin.Networking
 | 
					namespace Jellyfin.Networking;
 | 
				
			||||||
{
 | 
					
 | 
				
			||||||
/// <summary>
 | 
					/// <summary>
 | 
				
			||||||
/// Class responsible for registering all UDP broadcast endpoints and their handlers.
 | 
					/// Class responsible for registering all UDP broadcast endpoints and their handlers.
 | 
				
			||||||
/// </summary>
 | 
					/// </summary>
 | 
				
			||||||
@ -141,4 +141,3 @@ namespace Jellyfin.Networking
 | 
				
			|||||||
        _disposed = true;
 | 
					        _disposed = true;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user