public static GetSurveyUserIdValue ( this principal ) : int | ||
principal | this | |
리턴 | int |
public static int GetSurveyUserIdValue(this ClaimsPrincipal principal)
{
return (int)Convert.ChangeType(principal.FindFirstValue(SurveyClaimTypes.SurveyUserIdClaimType, true), typeof(int));
}