OperationsControllerDeleteOlderThan - метод

Delete all active operations whose are older than specified date. Returns number of deleted operations. Method is available for administrators only.

Definition

Пространство имён: Tessa.Web.Controllers
Сборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.0.4
C#
[HttpDeleteAttribute]
[SessionMethodAttribute(UserAccessLevel.Administrator)]
[ProducesAttribute("application/json", new string[] { ... })]
[ProducesResponseTypeAttribute(200)]
public Task<ActionResult<int>> DeleteOlderThan(
	[FromQueryAttribute(Name = "older-than")] DateTime dateTime,
	CancellationToken cancellationToken = default
)

Параметры

dateTime  DateTime
All operations older than the date are deleted.
cancellationToken  CancellationToken  (Optional)
Token to cancel async task.

Возвращаемое значение

TaskActionResultInt32
Number of deleted operations.

См. также