Files
Umbraco-CMS/src/Umbraco.Core/Services/IIconService.cs
Kenn Jacobsen b7553e311a Cache the SVG icons serverside to boost performance (#9200)
Co-authored-by: Nathan Woulfe <nathan@nathanw.com.au>
(cherry picked from commit 8e01ac30d6)

# Conflicts:
#	src/Umbraco.Web.UI/Umbraco/Views/Default.cshtml
#	src/Umbraco.Web/Services/IconService.cs
2021-03-09 14:22:22 +01:00

32 lines
1000 B
C#

using System;
using System.Collections.Generic;
using System.ComponentModel;
using Umbraco.Core.Models;
namespace Umbraco.Core.Services
{
public interface IIconService
{
/// <summary>
/// Gets the svg string for the icon name found at the global icons path
/// </summary>
/// <param name="iconName"></param>
/// <returns></returns>
IconModel GetIcon(string iconName);
/// <summary>
/// Gets a list of all svg icons found at at the global icons path.
/// </summary>
/// <returns>A list of <see cref="IconModel"/></returns>
[Obsolete("This method should not be used - use GetIcons instead")]
[EditorBrowsable(EditorBrowsableState.Never)]
IList<IconModel> GetAllIcons();
/// <summary>
/// Gets a list of all svg icons found at at the global icons path.
/// </summary>
/// <returns></returns>
IReadOnlyDictionary<string, string> GetIcons();
}
}