C# Class PhotoSharingApp.AppService.Tests.Helpers.UserRegistrationReferenceProviderMock

Helper class for mocking the user registration reference provider.
Inheritance: IUserRegistrationReferenceProvider
Afficher le fichier Open project: Microsoft/Appsample-Photosharing Class Usage Examples

Méthodes publiques

Méthode Description
GetCurrentUserRegistrationReferenceAsync ( ClaimsPrincipal principal, HttpRequestMessage request ) : Task

Extracts the User details accessing the service as a unique id in the form of "{authprovider}:{uniqueId}" using ProviderCrednetials for the logged in user.

Method Details

GetCurrentUserRegistrationReferenceAsync() public méthode

Extracts the User details accessing the service as a unique id in the form of "{authprovider}:{uniqueId}" using ProviderCrednetials for the logged in user.
public GetCurrentUserRegistrationReferenceAsync ( ClaimsPrincipal principal, HttpRequestMessage request ) : Task
principal System.Security.Claims.ClaimsPrincipal The principal accessing the service.
request System.Net.Http.HttpRequestMessage The HttpRequest used to access the service.
Résultat Task