From a5b10d853da0141e09c8b4cdd9d6ddde35f9c61e Mon Sep 17 00:00:00 2001 From: Cristian Pufu Date: Fri, 23 Aug 2024 21:12:31 +0300 Subject: [PATCH] Rename csproj, sln, namespaces --- .github/workflows/deploy.yml | 4 ++-- WebSocketTunnel.sln => Tunnelite.sln | 4 ++-- .../HttpTunnel/HttpConnection.cs | 2 +- .../HttpTunnel/HttpTunnelClient.cs | 2 +- .../HttpTunnel/HttpTunnelRequest.cs | 2 +- .../HttpTunnel/HttpTunnelResponse.cs | 2 +- .../Program.cs | 6 +++--- .../TcpTunnel/TcpConnection.cs | 2 +- .../TcpTunnel/TcpTunnelClient.cs | 2 +- .../TcpTunnel/TcpTunnelRequest.cs | 2 +- .../TcpTunnel/TcpTunnelResponse.cs | 2 +- .../Tunnelite.Client.csproj} | 0 .../Extensions.cs | 8 ++++---- .../HttpTunnel/HttpAppExtensions.cs | 2 +- .../HttpTunnel/HttpConnection.cs | 2 +- .../HttpTunnel/HttpDefferedRequest.cs | 2 +- .../HttpTunnel/HttpRequestsQueue.cs | 2 +- .../HttpTunnel/HttpTunnelHub.cs | 4 ++-- .../HttpTunnel/HttpTunnelStore.cs | 2 +- .../Program.cs | 8 ++++---- .../Properties/launchSettings.json | 0 .../TcpTunnel/TcpAppExtensions.cs | 2 +- .../TcpTunnel/TcpClientStore.cs | 2 +- .../TcpTunnel/TcpConnection.cs | 2 +- .../TcpTunnel/TcpTunnelHub.cs | 2 +- .../TcpTunnel/TcpTunnelStore.cs | 2 +- .../Tunnelite.Server.csproj} | 0 .../WsTunnel/WsAppExtensions.cs | 2 +- .../WsTunnel/WsConnection.cs | 2 +- .../WsTunnel/WsDefferedRequest.cs | 2 +- .../WsTunnel/WsRequestsQueue.cs | 2 +- .../WsTunnel/WsTunnelMiddleware.cs | 4 ++-- .../appsettings.Development.json | 0 .../appsettings.json | 0 .../wwwroot/favicon.ico | Bin 35 files changed, 41 insertions(+), 41 deletions(-) rename WebSocketTunnel.sln => Tunnelite.sln (90%) rename src/{WebSocketTunnel.Client => Tunnelite.Client}/HttpTunnel/HttpConnection.cs (87%) rename src/{WebSocketTunnel.Client => Tunnelite.Client}/HttpTunnel/HttpTunnelClient.cs (99%) rename src/{WebSocketTunnel.Client => Tunnelite.Client}/HttpTunnel/HttpTunnelRequest.cs (83%) rename src/{WebSocketTunnel.Client => Tunnelite.Client}/HttpTunnel/HttpTunnelResponse.cs (83%) rename src/{WebSocketTunnel.Client => Tunnelite.Client}/Program.cs (96%) rename src/{WebSocketTunnel.Server => Tunnelite.Client}/TcpTunnel/TcpConnection.cs (67%) rename src/{WebSocketTunnel.Client => Tunnelite.Client}/TcpTunnel/TcpTunnelClient.cs (99%) rename src/{WebSocketTunnel.Client => Tunnelite.Client}/TcpTunnel/TcpTunnelRequest.cs (87%) rename src/{WebSocketTunnel.Client => Tunnelite.Client}/TcpTunnel/TcpTunnelResponse.cs (82%) rename src/{WebSocketTunnel.Client/WebSocketTunnel.Client.csproj => Tunnelite.Client/Tunnelite.Client.csproj} (100%) rename src/{WebSocketTunnel.Server => Tunnelite.Server}/Extensions.cs (89%) rename src/{WebSocketTunnel.Server => Tunnelite.Server}/HttpTunnel/HttpAppExtensions.cs (99%) rename src/{WebSocketTunnel.Server => Tunnelite.Server}/HttpTunnel/HttpConnection.cs (82%) rename src/{WebSocketTunnel.Server => Tunnelite.Server}/HttpTunnel/HttpDefferedRequest.cs (94%) rename src/{WebSocketTunnel.Server => Tunnelite.Server}/HttpTunnel/HttpRequestsQueue.cs (98%) rename src/{WebSocketTunnel.Server => Tunnelite.Server}/HttpTunnel/HttpTunnelHub.cs (97%) rename src/{WebSocketTunnel.Server => Tunnelite.Server}/HttpTunnel/HttpTunnelStore.cs (92%) rename src/{WebSocketTunnel.Server => Tunnelite.Server}/Program.cs (67%) rename src/{WebSocketTunnel.Server => Tunnelite.Server}/Properties/launchSettings.json (100%) rename src/{WebSocketTunnel.Server => Tunnelite.Server}/TcpTunnel/TcpAppExtensions.cs (78%) rename src/{WebSocketTunnel.Server => Tunnelite.Server}/TcpTunnel/TcpClientStore.cs (98%) rename src/{WebSocketTunnel.Client => Tunnelite.Server}/TcpTunnel/TcpConnection.cs (67%) rename src/{WebSocketTunnel.Server => Tunnelite.Server}/TcpTunnel/TcpTunnelHub.cs (99%) rename src/{WebSocketTunnel.Server => Tunnelite.Server}/TcpTunnel/TcpTunnelStore.cs (93%) rename src/{WebSocketTunnel.Server/WebSocketTunnel.Server.csproj => Tunnelite.Server/Tunnelite.Server.csproj} (100%) rename src/{WebSocketTunnel.Server => Tunnelite.Server}/WsTunnel/WsAppExtensions.cs (80%) rename src/{WebSocketTunnel.Server => Tunnelite.Server}/WsTunnel/WsConnection.cs (75%) rename src/{WebSocketTunnel.Server => Tunnelite.Server}/WsTunnel/WsDefferedRequest.cs (83%) rename src/{WebSocketTunnel.Server => Tunnelite.Server}/WsTunnel/WsRequestsQueue.cs (97%) rename src/{WebSocketTunnel.Server => Tunnelite.Server}/WsTunnel/WsTunnelMiddleware.cs (97%) rename src/{WebSocketTunnel.Server => Tunnelite.Server}/appsettings.Development.json (100%) rename src/{WebSocketTunnel.Server => Tunnelite.Server}/appsettings.json (100%) rename src/{WebSocketTunnel.Server => Tunnelite.Server}/wwwroot/favicon.ico (100%) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index ecec1f8..81ea2ac 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -19,11 +19,11 @@ jobs: dotnet-version: '8.x' - name: Build with dotnet - working-directory: src/WebSocketTunnel.Server + working-directory: src/Tunnelite.Server run: dotnet build --configuration Release - name: dotnet publish - working-directory: src/WebSocketTunnel.Server + working-directory: src/Tunnelite.Server run: dotnet publish -c Release -o ${{env.DOTNET_ROOT}}/myapp - name: Upload artifact for deployment job diff --git a/WebSocketTunnel.sln b/Tunnelite.sln similarity index 90% rename from WebSocketTunnel.sln rename to Tunnelite.sln index 97e6243..d7a6c2d 100644 --- a/WebSocketTunnel.sln +++ b/Tunnelite.sln @@ -3,9 +3,9 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 17 VisualStudioVersion = 17.10.35013.160 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WebSocketTunnel.Server", "src\WebSocketTunnel.Server\WebSocketTunnel.Server.csproj", "{F4F5BED8-351A-4F10-B82C-F79190CF1034}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tunnelite.Server", "src\Tunnelite.Server\Tunnelite.Server.csproj", "{F4F5BED8-351A-4F10-B82C-F79190CF1034}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WebSocketTunnel.Client", "src\WebSocketTunnel.Client\WebSocketTunnel.Client.csproj", "{959412E1-F444-4834-B457-47452236C9B3}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tunnelite.Client", "src\Tunnelite.Client\Tunnelite.Client.csproj", "{959412E1-F444-4834-B457-47452236C9B3}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{AFD8CF9B-F8B9-47C9-BEAB-FC0161D2AFB8}" EndProject diff --git a/src/WebSocketTunnel.Client/HttpTunnel/HttpConnection.cs b/src/Tunnelite.Client/HttpTunnel/HttpConnection.cs similarity index 87% rename from src/WebSocketTunnel.Client/HttpTunnel/HttpConnection.cs rename to src/Tunnelite.Client/HttpTunnel/HttpConnection.cs index 4a77ceb..4c61c1e 100644 --- a/src/WebSocketTunnel.Client/HttpTunnel/HttpConnection.cs +++ b/src/Tunnelite.Client/HttpTunnel/HttpConnection.cs @@ -1,5 +1,5 @@ #nullable disable -namespace WebSocketTunnel.Client.HttpTunnel; +namespace Tunnelite.Client.HttpTunnel; public class HttpConnection { diff --git a/src/WebSocketTunnel.Client/HttpTunnel/HttpTunnelClient.cs b/src/Tunnelite.Client/HttpTunnel/HttpTunnelClient.cs similarity index 99% rename from src/WebSocketTunnel.Client/HttpTunnel/HttpTunnelClient.cs rename to src/Tunnelite.Client/HttpTunnel/HttpTunnelClient.cs index 615bfc9..6bbc5ce 100644 --- a/src/WebSocketTunnel.Client/HttpTunnel/HttpTunnelClient.cs +++ b/src/Tunnelite.Client/HttpTunnel/HttpTunnelClient.cs @@ -7,7 +7,7 @@ using System.Net.WebSockets; using System.Runtime.CompilerServices; -namespace WebSocketTunnel.Client.HttpTunnel; +namespace Tunnelite.Client.HttpTunnel; public class HttpTunnelClient { diff --git a/src/WebSocketTunnel.Client/HttpTunnel/HttpTunnelRequest.cs b/src/Tunnelite.Client/HttpTunnel/HttpTunnelRequest.cs similarity index 83% rename from src/WebSocketTunnel.Client/HttpTunnel/HttpTunnelRequest.cs rename to src/Tunnelite.Client/HttpTunnel/HttpTunnelRequest.cs index f711738..d981010 100644 --- a/src/WebSocketTunnel.Client/HttpTunnel/HttpTunnelRequest.cs +++ b/src/Tunnelite.Client/HttpTunnel/HttpTunnelRequest.cs @@ -1,5 +1,5 @@ #nullable disable -namespace WebSocketTunnel.Client.HttpTunnel; +namespace Tunnelite.Client.HttpTunnel; public class HttpTunnelRequest { diff --git a/src/WebSocketTunnel.Client/HttpTunnel/HttpTunnelResponse.cs b/src/Tunnelite.Client/HttpTunnel/HttpTunnelResponse.cs similarity index 83% rename from src/WebSocketTunnel.Client/HttpTunnel/HttpTunnelResponse.cs rename to src/Tunnelite.Client/HttpTunnel/HttpTunnelResponse.cs index 35654d7..aa6a1ce 100644 --- a/src/WebSocketTunnel.Client/HttpTunnel/HttpTunnelResponse.cs +++ b/src/Tunnelite.Client/HttpTunnel/HttpTunnelResponse.cs @@ -1,5 +1,5 @@ #nullable disable -namespace WebSocketTunnel.Client.HttpTunnel; +namespace Tunnelite.Client.HttpTunnel; public class HttpTunnelResponse { diff --git a/src/WebSocketTunnel.Client/Program.cs b/src/Tunnelite.Client/Program.cs similarity index 96% rename from src/WebSocketTunnel.Client/Program.cs rename to src/Tunnelite.Client/Program.cs index 0b90054..a147133 100644 --- a/src/WebSocketTunnel.Client/Program.cs +++ b/src/Tunnelite.Client/Program.cs @@ -1,10 +1,10 @@ using Microsoft.AspNetCore.SignalR.Client; using Microsoft.Extensions.Logging; using System.CommandLine; -using WebSocketTunnel.Client.TcpTunnel; -using WebSocketTunnel.Client.HttpTunnel; +using Tunnelite.Client.TcpTunnel; +using Tunnelite.Client.HttpTunnel; -namespace WebSocketTunnel.Client; +namespace Tunnelite.Client; public class Program { diff --git a/src/WebSocketTunnel.Server/TcpTunnel/TcpConnection.cs b/src/Tunnelite.Client/TcpTunnel/TcpConnection.cs similarity index 67% rename from src/WebSocketTunnel.Server/TcpTunnel/TcpConnection.cs rename to src/Tunnelite.Client/TcpTunnel/TcpConnection.cs index 77d0817..12a72cf 100644 --- a/src/WebSocketTunnel.Server/TcpTunnel/TcpConnection.cs +++ b/src/Tunnelite.Client/TcpTunnel/TcpConnection.cs @@ -1,5 +1,5 @@ #nullable disable -namespace WebSocketTunnel.Server.TcpTunnel; +namespace Tunnelite.Client.TcpTunnel; public class TcpConnection { diff --git a/src/WebSocketTunnel.Client/TcpTunnel/TcpTunnelClient.cs b/src/Tunnelite.Client/TcpTunnel/TcpTunnelClient.cs similarity index 99% rename from src/WebSocketTunnel.Client/TcpTunnel/TcpTunnelClient.cs rename to src/Tunnelite.Client/TcpTunnel/TcpTunnelClient.cs index 9769a4a..4efedd8 100644 --- a/src/WebSocketTunnel.Client/TcpTunnel/TcpTunnelClient.cs +++ b/src/Tunnelite.Client/TcpTunnel/TcpTunnelClient.cs @@ -5,7 +5,7 @@ using System.Net.Sockets; using System.Runtime.CompilerServices; -namespace WebSocketTunnel.Client.TcpTunnel; +namespace Tunnelite.Client.TcpTunnel; public class TcpTunnelClient { diff --git a/src/WebSocketTunnel.Client/TcpTunnel/TcpTunnelRequest.cs b/src/Tunnelite.Client/TcpTunnel/TcpTunnelRequest.cs similarity index 87% rename from src/WebSocketTunnel.Client/TcpTunnel/TcpTunnelRequest.cs rename to src/Tunnelite.Client/TcpTunnel/TcpTunnelRequest.cs index 139ff7d..3bb218f 100644 --- a/src/WebSocketTunnel.Client/TcpTunnel/TcpTunnelRequest.cs +++ b/src/Tunnelite.Client/TcpTunnel/TcpTunnelRequest.cs @@ -1,5 +1,5 @@ #nullable disable -namespace WebSocketTunnel.Client.TcpTunnel; +namespace Tunnelite.Client.TcpTunnel; public class TcpTunnelRequest { diff --git a/src/WebSocketTunnel.Client/TcpTunnel/TcpTunnelResponse.cs b/src/Tunnelite.Client/TcpTunnel/TcpTunnelResponse.cs similarity index 82% rename from src/WebSocketTunnel.Client/TcpTunnel/TcpTunnelResponse.cs rename to src/Tunnelite.Client/TcpTunnel/TcpTunnelResponse.cs index 7210f8c..9496e2a 100644 --- a/src/WebSocketTunnel.Client/TcpTunnel/TcpTunnelResponse.cs +++ b/src/Tunnelite.Client/TcpTunnel/TcpTunnelResponse.cs @@ -1,5 +1,5 @@ #nullable disable -namespace WebSocketTunnel.Client.TcpTunnel; +namespace Tunnelite.Client.TcpTunnel; public class TcpTunnelResponse { diff --git a/src/WebSocketTunnel.Client/WebSocketTunnel.Client.csproj b/src/Tunnelite.Client/Tunnelite.Client.csproj similarity index 100% rename from src/WebSocketTunnel.Client/WebSocketTunnel.Client.csproj rename to src/Tunnelite.Client/Tunnelite.Client.csproj diff --git a/src/WebSocketTunnel.Server/Extensions.cs b/src/Tunnelite.Server/Extensions.cs similarity index 89% rename from src/WebSocketTunnel.Server/Extensions.cs rename to src/Tunnelite.Server/Extensions.cs index 962dc08..f0e173e 100644 --- a/src/WebSocketTunnel.Server/Extensions.cs +++ b/src/Tunnelite.Server/Extensions.cs @@ -1,8 +1,8 @@ -using WebSocketTunnel.Server.HttpTunnel; -using WebSocketTunnel.Server.TcpTunnel; -using WebSocketTunnel.Server.WsTunnel; +using Tunnelite.Server.HttpTunnel; +using Tunnelite.Server.TcpTunnel; +using Tunnelite.Server.WsTunnel; -namespace WebSocketTunnel.Server; +namespace Tunnelite.Server; public static class Extensions { diff --git a/src/WebSocketTunnel.Server/HttpTunnel/HttpAppExtensions.cs b/src/Tunnelite.Server/HttpTunnel/HttpAppExtensions.cs similarity index 99% rename from src/WebSocketTunnel.Server/HttpTunnel/HttpAppExtensions.cs rename to src/Tunnelite.Server/HttpTunnel/HttpAppExtensions.cs index 057d3db..05b86af 100644 --- a/src/WebSocketTunnel.Server/HttpTunnel/HttpAppExtensions.cs +++ b/src/Tunnelite.Server/HttpTunnel/HttpAppExtensions.cs @@ -1,7 +1,7 @@ using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.SignalR; -namespace WebSocketTunnel.Server.HttpTunnel; +namespace Tunnelite.Server.HttpTunnel; public static class HttpAppExtensions { diff --git a/src/WebSocketTunnel.Server/HttpTunnel/HttpConnection.cs b/src/Tunnelite.Server/HttpTunnel/HttpConnection.cs similarity index 82% rename from src/WebSocketTunnel.Server/HttpTunnel/HttpConnection.cs rename to src/Tunnelite.Server/HttpTunnel/HttpConnection.cs index 4d77290..c1cbfac 100644 --- a/src/WebSocketTunnel.Server/HttpTunnel/HttpConnection.cs +++ b/src/Tunnelite.Server/HttpTunnel/HttpConnection.cs @@ -1,5 +1,5 @@ #nullable disable -namespace WebSocketTunnel.Server.HttpTunnel; +namespace Tunnelite.Server.HttpTunnel; public class HttpConnection { diff --git a/src/WebSocketTunnel.Server/HttpTunnel/HttpDefferedRequest.cs b/src/Tunnelite.Server/HttpTunnel/HttpDefferedRequest.cs similarity index 94% rename from src/WebSocketTunnel.Server/HttpTunnel/HttpDefferedRequest.cs rename to src/Tunnelite.Server/HttpTunnel/HttpDefferedRequest.cs index 299098a..97aab22 100644 --- a/src/WebSocketTunnel.Server/HttpTunnel/HttpDefferedRequest.cs +++ b/src/Tunnelite.Server/HttpTunnel/HttpDefferedRequest.cs @@ -1,4 +1,4 @@ -namespace WebSocketTunnel.Server.HttpTunnel; +namespace Tunnelite.Server.HttpTunnel; public class HttpDefferedRequest : IDisposable { diff --git a/src/WebSocketTunnel.Server/HttpTunnel/HttpRequestsQueue.cs b/src/Tunnelite.Server/HttpTunnel/HttpRequestsQueue.cs similarity index 98% rename from src/WebSocketTunnel.Server/HttpTunnel/HttpRequestsQueue.cs rename to src/Tunnelite.Server/HttpTunnel/HttpRequestsQueue.cs index ec9b4f1..a1c036d 100644 --- a/src/WebSocketTunnel.Server/HttpTunnel/HttpRequestsQueue.cs +++ b/src/Tunnelite.Server/HttpTunnel/HttpRequestsQueue.cs @@ -1,6 +1,6 @@ using System.Collections.Concurrent; -namespace WebSocketTunnel.Server.HttpTunnel; +namespace Tunnelite.Server.HttpTunnel; public class HttpRequestsQueue { diff --git a/src/WebSocketTunnel.Server/HttpTunnel/HttpTunnelHub.cs b/src/Tunnelite.Server/HttpTunnel/HttpTunnelHub.cs similarity index 97% rename from src/WebSocketTunnel.Server/HttpTunnel/HttpTunnelHub.cs rename to src/Tunnelite.Server/HttpTunnel/HttpTunnelHub.cs index 3fbf0c4..0816914 100644 --- a/src/WebSocketTunnel.Server/HttpTunnel/HttpTunnelHub.cs +++ b/src/Tunnelite.Server/HttpTunnel/HttpTunnelHub.cs @@ -1,9 +1,9 @@ using Microsoft.AspNetCore.SignalR; using System.Buffers; using System.Net.WebSockets; -using WebSocketTunnel.Server.WsTunnel; +using Tunnelite.Server.WsTunnel; -namespace WebSocketTunnel.Server.HttpTunnel; +namespace Tunnelite.Server.HttpTunnel; public class HttpTunnelHub(HttpTunnelStore httpTunnelStore, WsRequestsQueue wsRequestsQueue, ILogger logger) : Hub { diff --git a/src/WebSocketTunnel.Server/HttpTunnel/HttpTunnelStore.cs b/src/Tunnelite.Server/HttpTunnel/HttpTunnelStore.cs similarity index 92% rename from src/WebSocketTunnel.Server/HttpTunnel/HttpTunnelStore.cs rename to src/Tunnelite.Server/HttpTunnel/HttpTunnelStore.cs index 775d600..625d594 100644 --- a/src/WebSocketTunnel.Server/HttpTunnel/HttpTunnelStore.cs +++ b/src/Tunnelite.Server/HttpTunnel/HttpTunnelStore.cs @@ -1,6 +1,6 @@ using System.Collections.Concurrent; -namespace WebSocketTunnel.Server.HttpTunnel; +namespace Tunnelite.Server.HttpTunnel; public class HttpTunnelStore { diff --git a/src/WebSocketTunnel.Server/Program.cs b/src/Tunnelite.Server/Program.cs similarity index 67% rename from src/WebSocketTunnel.Server/Program.cs rename to src/Tunnelite.Server/Program.cs index c0dfa8d..74234aa 100644 --- a/src/WebSocketTunnel.Server/Program.cs +++ b/src/Tunnelite.Server/Program.cs @@ -1,7 +1,7 @@ -using WebSocketTunnel.Server; -using WebSocketTunnel.Server.HttpTunnel; -using WebSocketTunnel.Server.TcpTunnel; -using WebSocketTunnel.Server.WsTunnel; +using Tunnelite.Server; +using Tunnelite.Server.HttpTunnel; +using Tunnelite.Server.TcpTunnel; +using Tunnelite.Server.WsTunnel; var builder = WebApplication.CreateBuilder(args); diff --git a/src/WebSocketTunnel.Server/Properties/launchSettings.json b/src/Tunnelite.Server/Properties/launchSettings.json similarity index 100% rename from src/WebSocketTunnel.Server/Properties/launchSettings.json rename to src/Tunnelite.Server/Properties/launchSettings.json diff --git a/src/WebSocketTunnel.Server/TcpTunnel/TcpAppExtensions.cs b/src/Tunnelite.Server/TcpTunnel/TcpAppExtensions.cs similarity index 78% rename from src/WebSocketTunnel.Server/TcpTunnel/TcpAppExtensions.cs rename to src/Tunnelite.Server/TcpTunnel/TcpAppExtensions.cs index a70f1c4..ad6ac51 100644 --- a/src/WebSocketTunnel.Server/TcpTunnel/TcpAppExtensions.cs +++ b/src/Tunnelite.Server/TcpTunnel/TcpAppExtensions.cs @@ -1,4 +1,4 @@ -namespace WebSocketTunnel.Server.TcpTunnel; +namespace Tunnelite.Server.TcpTunnel; public static class TcpAppExtensions { diff --git a/src/WebSocketTunnel.Server/TcpTunnel/TcpClientStore.cs b/src/Tunnelite.Server/TcpTunnel/TcpClientStore.cs similarity index 98% rename from src/WebSocketTunnel.Server/TcpTunnel/TcpClientStore.cs rename to src/Tunnelite.Server/TcpTunnel/TcpClientStore.cs index c590f2d..c4f866d 100644 --- a/src/WebSocketTunnel.Server/TcpTunnel/TcpClientStore.cs +++ b/src/Tunnelite.Server/TcpTunnel/TcpClientStore.cs @@ -2,7 +2,7 @@ using System.Net.Sockets; #nullable disable -namespace WebSocketTunnel.Server.TcpTunnel; +namespace Tunnelite.Server.TcpTunnel; public class TcpClientStore { diff --git a/src/WebSocketTunnel.Client/TcpTunnel/TcpConnection.cs b/src/Tunnelite.Server/TcpTunnel/TcpConnection.cs similarity index 67% rename from src/WebSocketTunnel.Client/TcpTunnel/TcpConnection.cs rename to src/Tunnelite.Server/TcpTunnel/TcpConnection.cs index fa27d72..7ed19f8 100644 --- a/src/WebSocketTunnel.Client/TcpTunnel/TcpConnection.cs +++ b/src/Tunnelite.Server/TcpTunnel/TcpConnection.cs @@ -1,5 +1,5 @@ #nullable disable -namespace WebSocketTunnel.Client.TcpTunnel; +namespace Tunnelite.Server.TcpTunnel; public class TcpConnection { diff --git a/src/WebSocketTunnel.Server/TcpTunnel/TcpTunnelHub.cs b/src/Tunnelite.Server/TcpTunnel/TcpTunnelHub.cs similarity index 99% rename from src/WebSocketTunnel.Server/TcpTunnel/TcpTunnelHub.cs rename to src/Tunnelite.Server/TcpTunnel/TcpTunnelHub.cs index cd0a824..3db9a4d 100644 --- a/src/WebSocketTunnel.Server/TcpTunnel/TcpTunnelHub.cs +++ b/src/Tunnelite.Server/TcpTunnel/TcpTunnelHub.cs @@ -4,7 +4,7 @@ using System.Net.Sockets; using System.Threading.Channels; -namespace WebSocketTunnel.Server.TcpTunnel; +namespace Tunnelite.Server.TcpTunnel; public class TcpTunnelHub(TcpTunnelStore tunnelStore, TcpClientStore tcpClientStore, IHubContext hubContext, ILogger logger) : Hub { diff --git a/src/WebSocketTunnel.Server/TcpTunnel/TcpTunnelStore.cs b/src/Tunnelite.Server/TcpTunnel/TcpTunnelStore.cs similarity index 93% rename from src/WebSocketTunnel.Server/TcpTunnel/TcpTunnelStore.cs rename to src/Tunnelite.Server/TcpTunnel/TcpTunnelStore.cs index 792bc9c..443cc40 100644 --- a/src/WebSocketTunnel.Server/TcpTunnel/TcpTunnelStore.cs +++ b/src/Tunnelite.Server/TcpTunnel/TcpTunnelStore.cs @@ -1,7 +1,7 @@ using System.Collections.Concurrent; #nullable disable -namespace WebSocketTunnel.Server.TcpTunnel; +namespace Tunnelite.Server.TcpTunnel; public class TcpTunnelStore { diff --git a/src/WebSocketTunnel.Server/WebSocketTunnel.Server.csproj b/src/Tunnelite.Server/Tunnelite.Server.csproj similarity index 100% rename from src/WebSocketTunnel.Server/WebSocketTunnel.Server.csproj rename to src/Tunnelite.Server/Tunnelite.Server.csproj diff --git a/src/WebSocketTunnel.Server/WsTunnel/WsAppExtensions.cs b/src/Tunnelite.Server/WsTunnel/WsAppExtensions.cs similarity index 80% rename from src/WebSocketTunnel.Server/WsTunnel/WsAppExtensions.cs rename to src/Tunnelite.Server/WsTunnel/WsAppExtensions.cs index 848314a..9a1890e 100644 --- a/src/WebSocketTunnel.Server/WsTunnel/WsAppExtensions.cs +++ b/src/Tunnelite.Server/WsTunnel/WsAppExtensions.cs @@ -1,4 +1,4 @@ -namespace WebSocketTunnel.Server.WsTunnel; +namespace Tunnelite.Server.WsTunnel; public static class WsAppExtensions { diff --git a/src/WebSocketTunnel.Server/WsTunnel/WsConnection.cs b/src/Tunnelite.Server/WsTunnel/WsConnection.cs similarity index 75% rename from src/WebSocketTunnel.Server/WsTunnel/WsConnection.cs rename to src/Tunnelite.Server/WsTunnel/WsConnection.cs index 14b21b4..aa61aed 100644 --- a/src/WebSocketTunnel.Server/WsTunnel/WsConnection.cs +++ b/src/Tunnelite.Server/WsTunnel/WsConnection.cs @@ -1,5 +1,5 @@ #nullable disable -namespace WebSocketTunnel.Server.WsTunnel; +namespace Tunnelite.Server.WsTunnel; public class WsConnection { diff --git a/src/WebSocketTunnel.Server/WsTunnel/WsDefferedRequest.cs b/src/Tunnelite.Server/WsTunnel/WsDefferedRequest.cs similarity index 83% rename from src/WebSocketTunnel.Server/WsTunnel/WsDefferedRequest.cs rename to src/Tunnelite.Server/WsTunnel/WsDefferedRequest.cs index ae5131e..d0d84aa 100644 --- a/src/WebSocketTunnel.Server/WsTunnel/WsDefferedRequest.cs +++ b/src/Tunnelite.Server/WsTunnel/WsDefferedRequest.cs @@ -1,6 +1,6 @@ using System.Net.WebSockets; -namespace WebSocketTunnel.Server.WsTunnel; +namespace Tunnelite.Server.WsTunnel; public class WsDefferedRequest { diff --git a/src/WebSocketTunnel.Server/WsTunnel/WsRequestsQueue.cs b/src/Tunnelite.Server/WsTunnel/WsRequestsQueue.cs similarity index 97% rename from src/WebSocketTunnel.Server/WsTunnel/WsRequestsQueue.cs rename to src/Tunnelite.Server/WsTunnel/WsRequestsQueue.cs index 69840e9..1248c8e 100644 --- a/src/WebSocketTunnel.Server/WsTunnel/WsRequestsQueue.cs +++ b/src/Tunnelite.Server/WsTunnel/WsRequestsQueue.cs @@ -1,7 +1,7 @@ using System.Collections.Concurrent; using System.Net.WebSockets; -namespace WebSocketTunnel.Server.WsTunnel; +namespace Tunnelite.Server.WsTunnel; public class WsRequestsQueue { diff --git a/src/WebSocketTunnel.Server/WsTunnel/WsTunnelMiddleware.cs b/src/Tunnelite.Server/WsTunnel/WsTunnelMiddleware.cs similarity index 97% rename from src/WebSocketTunnel.Server/WsTunnel/WsTunnelMiddleware.cs rename to src/Tunnelite.Server/WsTunnel/WsTunnelMiddleware.cs index 6f02694..4973dfe 100644 --- a/src/WebSocketTunnel.Server/WsTunnel/WsTunnelMiddleware.cs +++ b/src/Tunnelite.Server/WsTunnel/WsTunnelMiddleware.cs @@ -1,7 +1,7 @@ using Microsoft.AspNetCore.SignalR; -using WebSocketTunnel.Server.HttpTunnel; +using Tunnelite.Server.HttpTunnel; -namespace WebSocketTunnel.Server.WsTunnel; +namespace Tunnelite.Server.WsTunnel; public class WsTunnelMiddleware(RequestDelegate next, WsRequestsQueue requestsQueue, HttpTunnelStore tunnelStore, IHubContext hubContext, ILogger logger) { diff --git a/src/WebSocketTunnel.Server/appsettings.Development.json b/src/Tunnelite.Server/appsettings.Development.json similarity index 100% rename from src/WebSocketTunnel.Server/appsettings.Development.json rename to src/Tunnelite.Server/appsettings.Development.json diff --git a/src/WebSocketTunnel.Server/appsettings.json b/src/Tunnelite.Server/appsettings.json similarity index 100% rename from src/WebSocketTunnel.Server/appsettings.json rename to src/Tunnelite.Server/appsettings.json diff --git a/src/WebSocketTunnel.Server/wwwroot/favicon.ico b/src/Tunnelite.Server/wwwroot/favicon.ico similarity index 100% rename from src/WebSocketTunnel.Server/wwwroot/favicon.ico rename to src/Tunnelite.Server/wwwroot/favicon.ico