- Fixed the logic of
PhoneNumberIdentifier
to always maintain the original phone number string whether it included the leading + sign or not.
- Added
string RawID { get; }
andstatic CommunicationIdentifier FromRawId(string rawId)
toCommunicationIdentifier
to translate between aCommunicationIdentifier
and its underlying canonical rawId representation. Developers can now use the rawId as an encoded format for identifiers to store in their databases or as stable keys in general. - Always include
rawId
when serializing identifiers to wire format.
- Optimization added: When the proactive refreshing is enabled and the token refresher fails to provide a token that's not about to expire soon, the subsequent refresh attempts will be scheduled for when the token reaches half of its remaining lifetime until a token with long enough validity (>10 minutes) is obtained.
- Dependency versions updated.
Updated Azure.Communication.Common
version.
Updated Azure.Communication.Common
version.
- Updated
CommunicationTokenRefreshOptions(bool refreshProactively, Func<CancellationToken, string> tokenRefresher, Func<CancellationToken, ValueTask<string>> asyncTokenRefresher = null, string initialToken = null)
toCommunicationTokenRefreshOptions(bool refreshProactively, Func<CancellationToken, string> tokenRefresher)
.asyncTokenRefresher
andinitialToken
are updated to become public properties.
- Added
MicrosoftTeamsUserIdentifier
.
- Renamed
CommunicationUserCredential
toCommunicationTokenCredential
. - Replaced
CommunicationTokenCredential(bool refreshProactively, Func<CancellationToken, string> tokenRefresher,Func<CancellationToken, ValueTask<string>>? asyncTokenRefresher = null, string? initialToken = null)
. withCommunicationTokenCredential(CommunicationTokenRefreshOptions tokenRefreshOptions)
. - Renamed
PhoneNumber
toPhoneNumberIdentifier
. - Renamed
CommunicationUser
toCommunicationUserIdentifier
. - Removed
CallingApplication
. - Renamed
Id
toRawId
inPhoneNumberIdentifier
.
Updated Azure.Communication.Common
version.
Updated Azure.Communication.Common
version.
This package contains common code for Azure Communication Service libraries. For more information, please see the README.
This is a Public Preview version, so breaking changes are possible in subsequent releases as we improve the product. To provide feedback, please submit an issue in our Azure SDK for .NET GitHub repo.