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 |
|---|---|---|
| ILogViewerService | 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 |
|---|---|---|
| CancellationToken | cancellationToken | |
| 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 boolean result. |