Interface IUserPictureProvider
Represents a provider that can get a url to a picture for a user.
Namespace: IRM.AspNetCore.Identity
Assembly: IRM.AspNetCore.Identity.dll
Syntax
public interface IUserPictureProvider
Methods
GetFallbackPictureUrl(String)
Gets a fallback url to a picture for a user, if GetUserPictureUrl(IUserIdentifiers, String) doesn't work..
Declaration
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. |
GetUserPictureUrl(IUserIdentifiers, String)
Gets a url to a picture for a user.
Declaration
Task<string> GetUserPictureUrl(IUserIdentifiers user, string initials = null)
Parameters
IUserIdentifiers
user
The user to get a picture url for. |
String
initials
Optionally the name initials for the user. |
Returns
System.Threading.Tasks.Task<String>
A url to a picture for a user, or null if the user does not have a picture. |