Skip to content

Commit 3da54ee

Browse files
committed
Added missing docs and fixed error message.
1 parent e8494a3 commit 3da54ee

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/MongoDB.Driver/Core/Configuration/ClusterBuilder.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,10 +159,10 @@ public ClusterBuilder ConfigureTcp(Func<TcpStreamSettings, TcpStreamSettings> co
159159
}
160160

161161
/// <summary>
162-
/// //TODO
162+
/// Configures the SOCKS5 proxy settings for the cluster.
163163
/// </summary>
164-
/// <param name="configurator"></param>
165-
/// <returns></returns>
164+
/// <param name="configurator"> The SOCKS5 proxy settings configurator delegate.</param>
165+
/// <returns> A reconfigured cluster builder.</returns>
166166
public ClusterBuilder ConfigureSocks5Proxy(Func<ProxyStreamSettings, ProxyStreamSettings> configurator)
167167
{
168168
Ensure.IsNotNull(configurator, nameof(configurator));

src/MongoDB.Driver/Core/Configuration/ConnectionString.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1071,7 +1071,7 @@ private void ParseOption(string name, string value)
10711071
var proxyPortValue = ParseInt32(name, value);
10721072
if (proxyPortValue is < 1 or > 65535)
10731073
{
1074-
throw new MongoConfigurationException($"Invalid proxy port: {proxyPortValue}: must be between 1 and 65535, inclusive.");
1074+
throw new MongoConfigurationException($"Invalid proxy port {proxyPortValue}: must be between 1 and 65535, inclusive.");
10751075
}
10761076
_proxyPort = proxyPortValue;
10771077
break;

src/MongoDB.Driver/Core/Configuration/ProxyStreamSettings.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,21 +27,21 @@ public class ProxyStreamSettings
2727
private Socks5ProxySettings _socks5ProxySettings;
2828

2929
/// <summary>
30-
///
30+
/// Initializes a new instance of the <see cref="ProxyStreamSettings"/> class.
3131
/// </summary>
32-
/// <param name="socks5ProxySettings"></param>
32+
/// <param name="socks5ProxySettings"> The settings for the SOCKS5 proxy.</param>
3333
public ProxyStreamSettings(Optional<Socks5ProxySettings> socks5ProxySettings = default)
3434
{
3535
_socks5ProxySettings = socks5ProxySettings.WithDefault(null);
3636
}
3737

3838
/// <summary>
39-
///
39+
/// Gets the settings for the SOCKS5 proxy.
4040
/// </summary>
4141
public Socks5ProxySettings Socks5ProxySettings => _socks5ProxySettings;
4242

4343
/// <summary>
44-
///
44+
/// Creates a new instance of <see cref="ProxyStreamSettings"/> with the specified SOCKS5 proxy settings.
4545
/// </summary>
4646
/// <param name="socks5ProxySettings"></param>
4747
/// <returns></returns>

0 commit comments

Comments
 (0)