IdentityExtensions.GetName Method

Namespace:
Weavy.Core.Helpers
Assembly:
Weavy.Core.dll

GetName(ClaimsIdentity)

Get the display name if it exists, otherwise null.

public static string GetName(this ClaimsIdentity identity)

Parameters

identity
System.Security.Claims.ClaimsIdentity

A claims-based identity.

Returns

string