View Source
Class MacroRenderer
Inheritance
System.Object
Assembly: Umbraco.Web.Common.dll
Syntax
public class MacroRenderer : IMacroRenderer
Constructors
View Source
MacroRenderer(IProfilingLogger, ILogger<MacroRenderer>, IUmbracoContextAccessor, IOptionsMonitor<ContentSettings>, ILocalizedTextService, AppCaches, IMacroService, IHostingEnvironment, ICookieManager, ISessionManager, IRequestAccessor, PartialViewMacroEngine, IHttpContextAccessor)
Declaration
public MacroRenderer(IProfilingLogger profilingLogger, ILogger<MacroRenderer> logger, IUmbracoContextAccessor umbracoContextAccessor, IOptionsMonitor<ContentSettings> contentSettings, ILocalizedTextService textService, AppCaches appCaches, IMacroService macroService, IHostingEnvironment hostingEnvironment, ICookieManager cookieManager, ISessionManager sessionManager, IRequestAccessor requestAccessor, PartialViewMacroEngine partialViewMacroEngine, IHttpContextAccessor httpContextAccessor)
Parameters
View Source
MacroRenderer(IProfilingLogger, ILogger<MacroRenderer>, IUmbracoContextAccessor, IOptionsMonitor<ContentSettings>, ILocalizedTextService, AppCaches, IMacroService, ICookieManager, ISessionManager, IRequestAccessor, PartialViewMacroEngine, IHttpContextAccessor, IWebHostEnvironment)
Declaration
public MacroRenderer(IProfilingLogger profilingLogger, ILogger<MacroRenderer> logger, IUmbracoContextAccessor umbracoContextAccessor, IOptionsMonitor<ContentSettings> contentSettings, ILocalizedTextService textService, AppCaches appCaches, IMacroService macroService, ICookieManager cookieManager, ISessionManager sessionManager, IRequestAccessor requestAccessor, PartialViewMacroEngine partialViewMacroEngine, IHttpContextAccessor httpContextAccessor, IWebHostEnvironment webHostEnvironment)
Parameters
Methods
View Source
RenderAsync(String, IPublishedContent, Nullable<IDictionary<String, Object>>)
Declaration
public async Task<MacroContent> RenderAsync(string macroAlias, IPublishedContent content, IDictionary<string, object>? macroParams)
Parameters
Type |
Name |
Description |
System.String |
macroAlias |
|
IPublishedContent |
content |
|
System.Nullable<IDictionary<System.String, System.Object>> |
macroParams |
|
Returns