Class AllMessageTemplateLogViewerController
Namespace: Umbraco.Cms.Api.Management.Controllers.LogViewer
Assembly: Umbraco.Cms.Api.Management.dll
Syntax
public class AllMessageTemplateLogViewerController : LogViewerControllerBase
Constructors
View SourceAllMessageTemplateLogViewerController(ILogViewerService, IUmbracoMapper)
Declaration
public AllMessageTemplateLogViewerController(ILogViewerService logViewerService, IUmbracoMapper umbracoMapper)
Parameters
| Type | Name | Description |
|---|---|---|
| ILogViewerService | logViewerService | |
| IUmbracoMapper | umbracoMapper |
Methods
View SourceAllMessageTemplates(CancellationToken, Int32, Int32, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>)
Gets a paginated list of all log message templates for a specific date range.
Declaration
public async Task<IActionResult> AllMessageTemplates(CancellationToken cancellationToken, int skip = 0, int take = 100, DateTimeOffset? startDate = null, DateTimeOffset? endDate = null)
Parameters
| Type | Name | Description |
|---|---|---|
| CancellationToken | cancellationToken | |
| System.Int32 | skip | The amount of items to skip. |
| System.Int32 | take | The amount of items to take. |
| System.Nullable<DateTimeOffset> | startDate | The start date for the date range (can be null). |
| System.Nullable<DateTimeOffset> | endDate | The end date for the date range (can be null). |
Returns
| Type | Description |
|---|---|
| Task<IActionResult> | The paged result of the log message templates from the given time period. |