Esempio n. 1
0
        public override void Process(TagHelperContext context, TagHelperOutput output)
        {
            string email = Gravatar.Trim().ToLower();
            string src   = $"https://www.gravatar.com/avatar/{ComputeHash(email).ToLower()}?size={Size}&d={Default}";

            output.Attributes.SetAttribute("src", src);
            base.Process(context, output);
        }