src/Sib.Core/Authentication/SibUserManager.cs
/// <summary>
/// The get user given name.
/// </summary>
/// <param name="principal">
/// The principal.
/// </param>
/// <returns>
/// The <see cref="Task"/>.
/// </returns>
/// <exception cref="ArgumentNullException">principal must not be null
/// </exception>
The get user given name.
The get user given name .
public async Task<string> GetUserGivenName(ClaimsPrincipal principal)
        {
            if (principal == null)
            {
                throw new ArgumentNullException(nameof(principal));
            }
            IApplicationUser user = await this.GetUserAsync(principal).ConfigureAwait(false);
            return user.Name;
        }
public async Task < string > GetUserGivenName ( ClaimsPrincipal principal ) { if ( principal == null ) { throw new ArgumentNullException ( nameof ( principal ) ) ; } IApplicationUser user = await this . GetUserAsync ( principal ) . ConfigureAwait ( false ) ; return user . Name ; }
The get user given name.
The get user given name .
None
principal must not be null
principal must not be null
principal
ClaimsPrincipal
None