System.Security.Claims.ClaimsPrincipalExtensions.GetSurveyTenantIdValue C# (CSharp) Method

GetSurveyTenantIdValue() public static method

public static GetSurveyTenantIdValue ( this principal ) : int
principal this
return int
        public static int GetSurveyTenantIdValue(this ClaimsPrincipal principal)
        {
            return (int)Convert.ChangeType(principal.FindFirstValue(SurveyClaimTypes.SurveyTenantIdClaimType, true), typeof(int));
        }