Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/Confluent.Kafka/ClientExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Collections.Generic;
using System;
using System.Collections.Generic;

namespace Confluent.Kafka
{
Expand Down Expand Up @@ -41,6 +42,9 @@ public static class ClientExtensions
/// <seealso cref="OAuthBearerSetTokenFailure"/>
public static void OAuthBearerSetToken(this IClient client, string tokenValue, long lifetimeMs, string principalName, IDictionary<string, string> extensions = null)
{
ArgumentNullException.ThrowIfNull(tokenValue);
ArgumentNullException.ThrowIfNull(principalName);

client.Handle.LibrdkafkaHandle.OAuthBearerSetToken(tokenValue, lifetimeMs, principalName, extensions);
}

Expand Down