CommunicationIdentityModelFactory.CommunicationUserIdentifierAndToken Method

Definition

Initializes a new instance of the CommunicationUserIdentifierAndToken class.

public static Azure.Communication.Identity.CommunicationUserIdentifierAndToken CommunicationUserIdentifierAndToken(Azure.Communication.CommunicationUserIdentifier user, Azure.Core.AccessToken accessToken);
static member CommunicationUserIdentifierAndToken : Azure.Communication.CommunicationUserIdentifier * Azure.Core.AccessToken -> Azure.Communication.Identity.CommunicationUserIdentifierAndToken
Public Shared Function CommunicationUserIdentifierAndToken (user As CommunicationUserIdentifier, accessToken As AccessToken) As CommunicationUserIdentifierAndToken

Parameters

user
CommunicationUserIdentifier

The user stored in the instance.

accessToken
AccessToken

The access token stored in the instance.

Returns

A new CommunicationUserIdentifierAndToken instance for mocking.

Applies to