src/NuGetGallery/Helpers/GravatarHelper.cs
/// <summary>
/// Generates a URL to Gravatar that is proxied.
/// </summary>
/// <param name="email">The user's email address.</param>
/// <param name="size">The size of the gravatar image.</param>
/// <returns>The image URL, proxied.</returns>
Generates a URL to Gravatar that is proxied.
Generates a URL to Gravatar that is proxied .
public static string Url(UrlHelper url, string email, string username, int imageSize)
        {
            var features = DependencyResolver.Current.GetService<IFeatureFlagService>();
            return (features.IsGravatarProxyEnabled())
                ? url.Avatar(username, imageSize)
                : RawUrl(email, imageSize);
        }
public static string Url ( UrlHelper url , string email , string username , int imageSize ) { var features = DependencyResolver . Current . GetService < IFeatureFlagService > ( ) ; return ( features . IsGravatarProxyEnabled ( ) ) ? url . Avatar ( username , imageSize ) : RawUrl ( email , imageSize ) ; }
Generates a URL to Gravatar that is proxied.
Generates a URL to Gravatar that is proxied .
The image URL, proxied.
The image URL proxied .
url
UrlHelper
email
string
The user's email address.
The user ' s email address .
username
string
imageSize
int
size
The size of the gravatar image.
The size of the gravatar image .