Class ValidateLogFileSizeLogViewerController
Namespace: Umbraco.Cms.Api.Management.Controllers.LogViewer
Assembly: Umbraco.Cms.Api.Management.dll
Syntax
public class ValidateLogFileSizeLogViewerController : LogViewerControllerBase
Constructors
View SourceValidateLogFileSizeLogViewerController(ILogViewerService)
Declaration
public ValidateLogFileSizeLogViewerController(ILogViewerService logViewerService)
Parameters
Type | Name | Description |
---|---|---|
ILog |
logViewerService |
Methods
View SourceCanViewLogs(CancellationToken, Nullable<DateTimeOffset>, Nullable<DateTimeOffset>)
Gets a value indicating whether or not you are able to view logs for a specified date range.
Declaration
public async Task<IActionResult> CanViewLogs(CancellationToken cancellationToken, DateTimeOffset? startDate = null, DateTimeOffset? endDate = null)
Parameters
Type | Name | Description |
---|---|---|
Cancellation |
cancellationToken | |
System. |
startDate | The start date for the date range (can be null). |
System. |
endDate | The end date for the date range (can be null). |
Returns
Type | Description |
---|---|
Task<IAction |
The boolean result. |