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

Helper class for mocking the user registration reference provider.
Inheritance: IUserRegistrationReferenceProvider
显示文件 Open project: Microsoft/Appsample-Photosharing Class Usage Examples

Public Methods

Method 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 method

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.
return Task