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, 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
Type |
Name |
Description |
IProfilingLogger |
profilingLogger |
|
Microsoft.Extensions.Logging.ILogger<MacroRenderer> |
logger |
|
IUmbracoContextAccessor |
umbracoContextAccessor |
|
Microsoft.Extensions.Options.IOptionsMonitor<ContentSettings> |
contentSettings |
|
ILocalizedTextService |
textService |
|
AppCaches |
appCaches |
|
IMacroService |
macroService |
|
ICookieManager |
cookieManager |
|
ISessionManager |
sessionManager |
|
IRequestAccessor |
requestAccessor |
|
PartialViewMacroEngine |
partialViewMacroEngine |
|
Microsoft.AspNetCore.Http.IHttpContextAccessor |
httpContextAccessor |
|
Microsoft.AspNetCore.Hosting.IWebHostEnvironment |
webHostEnvironment |
|
View Source
MacroRenderer(IProfilingLogger, ILogger<MacroRenderer>, IUmbracoContextAccessor, IOptionsMonitor<ContentSettings>, ILocalizedTextService, AppCaches, IMacroService, Hosting.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, Hosting.IHostingEnvironment hostingEnvironment, ICookieManager cookieManager, ISessionManager sessionManager, IRequestAccessor requestAccessor, PartialViewMacroEngine partialViewMacroEngine, IHttpContextAccessor httpContextAccessor)
Parameters
Type |
Name |
Description |
IProfilingLogger |
profilingLogger |
|
Microsoft.Extensions.Logging.ILogger<MacroRenderer> |
logger |
|
IUmbracoContextAccessor |
umbracoContextAccessor |
|
Microsoft.Extensions.Options.IOptionsMonitor<ContentSettings> |
contentSettings |
|
ILocalizedTextService |
textService |
|
AppCaches |
appCaches |
|
IMacroService |
macroService |
|
IHostingEnvironment |
hostingEnvironment |
|
ICookieManager |
cookieManager |
|
ISessionManager |
sessionManager |
|
IRequestAccessor |
requestAccessor |
|
PartialViewMacroEngine |
partialViewMacroEngine |
|
Microsoft.AspNetCore.Http.IHttpContextAccessor |
httpContextAccessor |
|
Methods
View Source
RenderAsync(String, Nullable<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 |
|
System.Nullable<IPublishedContent> |
content |
|
System.Nullable<IDictionary<System.String, System.Object>> |
macroParams |
|
Returns
Type |
Description |
Task<MacroContent> |
|