Arun Prakash Nagendran
Arun Prakash Nagendran

Reputation: 641

Token expiry time from ServiceBusClient class of Azure.Messaging.ServiceBus

If I create a ServiceBusClient using the Sas Token Method, is there a way(property) to get the token expiry time from the ServiceBusClient object? Because, I will discard the token and down the timeline, I want to be able to identify the expiry and refresh it before it throws the token expiry error.

Upvotes: 0

Views: 646

Answers (1)

Gaurav Mantri
Gaurav Mantri

Reputation: 136306

Looking at the ServiceBusClient documentation here, it is not possible to extract the token expiry time from the instance of that object.

This is something you will need to handle on your own.

Upvotes: 1

Related Questions