SchemeControllerPostInvalidateCache - метод
Invalidate scheme cache on the server.
Method is available for administrators only.
Пространство имён: Tessa.Web.ControllersСборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.0.4
[HttpPostAttribute("invalidate")]
[ProducesResponseTypeAttribute(200)]
public ValueTask<ActionResult<bool>> PostInvalidateCache(
[FromQueryAttribute] bool force = false,
CancellationToken cancellationToken = default
)
<HttpPostAttribute("invalidate")>
<ProducesResponseTypeAttribute(200)>
Public Function PostInvalidateCache (
<FromQueryAttribute> Optional force As Boolean = false,
Optional cancellationToken As CancellationToken = Nothing
) As ValueTask(Of ActionResult(Of Boolean))
public:
[HttpPostAttribute(L"invalidate")]
[ProducesResponseTypeAttribute(200)]
ValueTask<ActionResult<bool>^> PostInvalidateCache(
[FromQueryAttribute] bool force = false,
CancellationToken cancellationToken = CancellationToken()
)
[<HttpPostAttribute("invalidate")>]
[<ProducesResponseTypeAttribute(200)>]
member PostInvalidateCache :
[<FromQueryAttribute>] ?force : bool *
?cancellationToken : CancellationToken
(* Defaults:
let _force = defaultArg force false
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> ValueTask<ActionResult<bool>>
- force Boolean (Optional)
- true - cache will be invalidated forcefully;
false - cache will be invalidated only if necessary.
- cancellationToken CancellationToken (Optional)
- Token to cancel async task.
ValueTaskActionResultBooleantrue if cache was actually invalidated;
false otherwise.