From e453b4d5ad8ac33f846b22732ea55ff3e52f9145 Mon Sep 17 00:00:00 2001 From: irving ou Date: Sat, 5 Jul 2025 18:44:22 -0400 Subject: [PATCH] review fix --- .../Devolutions.IronRdp.AvaloniaExample/MainWindow.axaml.cs | 2 +- ffi/dotnet/Devolutions.IronRdp.ConnectExample/Program.cs | 2 +- ffi/dotnet/Devolutions.IronRdp/src/Connection.cs | 6 +++--- ffi/dotnet/Devolutions.IronRdp/src/RdcleanPath.cs | 6 +++--- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/ffi/dotnet/Devolutions.IronRdp.AvaloniaExample/MainWindow.axaml.cs b/ffi/dotnet/Devolutions.IronRdp.AvaloniaExample/MainWindow.axaml.cs index 15e56c5f..e910a573 100644 --- a/ffi/dotnet/Devolutions.IronRdp.AvaloniaExample/MainWindow.axaml.cs +++ b/ffi/dotnet/Devolutions.IronRdp.AvaloniaExample/MainWindow.axaml.cs @@ -120,7 +120,7 @@ public partial class MainWindow : Window Debug.WriteLine("Connecting via WebSocket proxy"); (res, framed) = await Connection.ConnectWs( config, - new RdcleanPathConfig(new Uri(wsProxy), wsProxyToken), + new RdCleanPathConfig(new Uri(wsProxy), wsProxyToken), server, factory); } diff --git a/ffi/dotnet/Devolutions.IronRdp.ConnectExample/Program.cs b/ffi/dotnet/Devolutions.IronRdp.ConnectExample/Program.cs index 05468ccb..8c83fd95 100644 --- a/ffi/dotnet/Devolutions.IronRdp.ConnectExample/Program.cs +++ b/ffi/dotnet/Devolutions.IronRdp.ConnectExample/Program.cs @@ -32,7 +32,7 @@ namespace Devolutions.IronRdp.ConnectExample { (res, framed) = await Connection.ConnectWs( buildConfig(serverName, username, password, domain, 1980, 1080), - new RdcleanPathConfig(new Uri(wsProxy), wsProxyToken), + new RdCleanPathConfig(new Uri(wsProxy), wsProxyToken), serverName, null); } diff --git a/ffi/dotnet/Devolutions.IronRdp/src/Connection.cs b/ffi/dotnet/Devolutions.IronRdp/src/Connection.cs index 13520dcb..31bbe3ca 100644 --- a/ffi/dotnet/Devolutions.IronRdp/src/Connection.cs +++ b/ffi/dotnet/Devolutions.IronRdp/src/Connection.cs @@ -35,11 +35,11 @@ public static class Connection return (result, framedSsl); } - public static async Task<(ConnectionResult, Framed)> ConnectWs(Config config, RdcleanPathConfig rdcleanPathConfig, string serverName, CliprdrBackendFactory? factory, int port = 3389, CancellationToken token = default) + public static async Task<(ConnectionResult, Framed)> ConnectWs(Config config, RdCleanPathConfig rdCleanPathConfig, string serverName, CliprdrBackendFactory? factory, int port = 3389, CancellationToken token = default) { var websocket = new ClientWebSocket(); - await websocket.ConnectAsync(rdcleanPathConfig.Uri, token); + await websocket.ConnectAsync(rdCleanPathConfig.GatewayUri, token); var stream = new WebsocketStream(websocket); var framed = new Framed(stream); @@ -58,7 +58,7 @@ public static class Connection string destination = serverName + ":" + port; - var serverPublicKey = await ConnectRdCleanPath(framed, connector, destination, rdcleanPathConfig.AuthToken); + var serverPublicKey = await ConnectRdCleanPath(framed, connector, destination, rdCleanPathConfig.AuthToken); var result = await ConnectFinalize(serverName, connector, serverPublicKey, framed); diff --git a/ffi/dotnet/Devolutions.IronRdp/src/RdcleanPath.cs b/ffi/dotnet/Devolutions.IronRdp/src/RdcleanPath.cs index d01b5e88..49a74370 100644 --- a/ffi/dotnet/Devolutions.IronRdp/src/RdcleanPath.cs +++ b/ffi/dotnet/Devolutions.IronRdp/src/RdcleanPath.cs @@ -1,12 +1,12 @@ -using System; +namespace Devolutions.IronRdp; -public class RdcleanPathConfig +public class RdCleanPathConfig { public Uri GatewayUri { get; private set; } public string AuthToken { get; private set; } - public RdcleanPathConfig(Uri url, string authToken) + public RdCleanPathConfig(Uri url, string authToken) { GatewayUri = url; AuthToken = authToken;