C# Class Microsoft.AspNet.WebHooks.WebHookUser

Provides a default implementation of IWebHookUser for getting information about a user.
Inheritance: IWebHookUser
显示文件 Open project: aspnet/WebHooks Class Usage Examples

Public Methods

Method Description
GetUserIdAsync ( IPrincipal user ) : Task

Private Methods

Method Description
GetClaim ( ClaimsPrincipal principal, string claimsType ) : string

Looks up a claimsType in the provided principal and returns the value if found or null otherwise.

Reset ( ) : void

For testing purposes

Method Details

GetUserIdAsync() public method

public GetUserIdAsync ( IPrincipal user ) : Task
user IPrincipal
return Task