Skip to content

Commit

Permalink
Removed unused method
Browse files Browse the repository at this point in the history
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
  • Loading branch information
WhitWaldo committed Sep 16, 2024
1 parent 3af961a commit 6e17cd3
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/Dapr.Messaging/PublishSubscribe/DaprPublishSubscribeClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,4 @@ public abstract class DaprPublishSubscribeClient
/// <param name="cancellationToken">Cancellation token.</param>
/// <returns></returns>
public abstract IAsyncDisposable Register(string pubSubName, string topicName, DaprSubscriptionOptions options, TopicMessageHandler messageHandler, CancellationToken cancellationToken);

/// <summary>
/// Gets the Dapr API token header for the given token value.
/// </summary>
/// <param name="apiToken">The value of the Dapr API token.</param>
/// <returns></returns>
internal static KeyValuePair<string, string>? GetDaprApiTokenHeader(string apiToken)
{
if (string.IsNullOrWhiteSpace(apiToken))
return null;

return new KeyValuePair<string, string>("dapr-api-token", apiToken);
}
}

0 comments on commit 6e17cd3

Please sign in to comment.