Skip to content

Commit 83f27cd

Browse files
committed
Documentation cleanup.
Signed-off-by: currantw <[email protected]>
1 parent 70218fd commit 83f27cd

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

sources/Valkey.Glide/ConnectionConfiguration.cs

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -449,18 +449,14 @@ public T WithReadFrom(ReadFrom readFrom)
449449
#endregion
450450
#region Authentication
451451
/// <summary>
452-
/// Configure credentials for authentication process.
453-
/// If none are set, the client will not authenticate itself with the server.
454-
/// Supports both password-based and IAM authentication modes.
452+
/// Configure server credentials for authentication process.
453+
/// Supports both password-based and IAM authentication.
455454
/// </summary>
456455
/// <param name="credentials">The server credentials for authentication.</param>
457456
/// <returns>The builder instance for method chaining.</returns>
458457
public T WithCredentials(ServerCredentials credentials)
459458
{
460-
if (credentials == null)
461-
{
462-
throw new ArgumentNullException(nameof(credentials));
463-
}
459+
ArgumentNullException.ThrowIfNull(credentials);
464460

465461
IamCredentials? iamCredentials = null;
466462
if (credentials.IamConfig != null)
@@ -502,8 +498,7 @@ public T WithAuthentication(string? username, string password)
502498
}
503499

504500
/// <summary>
505-
/// Configure server credentials for password-based authentication.
506-
/// Username "default" will be used.
501+
/// Configure server credentials for password-based authentication with username "default".
507502
/// </summary>
508503
/// <param name="password">The password for authentication.</param>
509504
/// <returns>The builder instance for method chaining.</returns>

0 commit comments

Comments
 (0)