Class GravatarAndInitialsUserPictureProvider
Extends the GravatarUserPictureProvider with a picture with user initials as fallback when user does not have a Gravatar image.
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: IRM.AspNetCore.Identity.UI
Assembly: IRM.AspNetCore.Identity.UI.dll
Syntax
public class GravatarAndInitialsUserPictureProvider : GravatarUserPictureProvider, IUserPictureProvider
Constructors
GravatarAndInitialsUserPictureProvider(String)
Creates a new instance of GravatarAndInitialsUserPictureProvider.
Declaration
public GravatarAndInitialsUserPictureProvider(string apiBaseUrl)
Parameters
String
apiBaseUrl
The base url for the API, where the user controll exists. |
Methods
GetFallbackPictureUrl(String)
Gets a fallback url to a picture for a user, if GetUserPictureUrl(IUserIdentifiers, String) doesn't work..
Declaration
public override string GetFallbackPictureUrl(string initials = null)
Parameters
String
initials
Optionally the name initials for the user. |
Returns
String
A url to a fallback picture for a user, or null if the user does not have a picture. |