OperationsControllerDeleteOlderThan - метод
Delete all active operations whose are older than specified date. Returns number of deleted operations.
Method is available for administrators only.
Пространство имён: Tessa.Web.ControllersСборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.0.4
[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
)
<HttpDeleteAttribute>
<SessionMethodAttribute(UserAccessLevel.Administrator)>
<ProducesAttribute("application/json", New String() { ... })>
<ProducesResponseTypeAttribute(200)>
Public Function DeleteOlderThan (
<FromQueryAttribute(Name := "older-than")> dateTime As DateTime,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of ActionResult(Of Integer))
public:
[HttpDeleteAttribute]
[SessionMethodAttribute(UserAccessLevel::Administrator)]
[ProducesAttribute(L"application/json", __gc new array<String^>^ { ... })]
[ProducesResponseTypeAttribute(200)]
Task<ActionResult<int>^>^ DeleteOlderThan(
[FromQueryAttribute(Name = L"older-than")] DateTime dateTime,
CancellationToken cancellationToken = CancellationToken()
)
[<HttpDeleteAttribute>]
[<SessionMethodAttribute(UserAccessLevel.Administrator)>]
[<ProducesAttribute("application/json", new string[] { ... })>]
[<ProducesResponseTypeAttribute(200)>]
member DeleteOlderThan :
[<FromQueryAttribute(Name = "older-than")>] dateTime : DateTime *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<ActionResult<int>>
- dateTime DateTime
- All operations older than the date are deleted.
- cancellationToken CancellationToken (Optional)
- Token to cancel async task.
TaskActionResultInt32Number of deleted operations.