AiFilesControllerGetPreviewFile - метод
Get the preview file (PDF file for file types that can't be displayed in web browser by itself) for base content with specified identifier from AI cache.
Пространство имён: Tessa.Web.ControllersСборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.2.2+a8f0dd3c063817b2e3f05a923303d808e447c338
[HttpGetAttribute("preview-file")]
[SessionMethodAttribute(UserAccessLevel.Regular, false, new string[] { ... })]
[ProducesAttribute("application/octet-stream", new string[] { ... })]
[ProducesResponseTypeAttribute(200)]
public Task<IActionResult> GetPreviewFile(
[FromQueryAttribute] Guid fileID,
[FromQueryAttribute] string token,
CancellationToken cancellationToken = default
)
<HttpGetAttribute("preview-file")>
<SessionMethodAttribute(UserAccessLevel.Regular, false, New String() { ... })>
<ProducesAttribute("application/octet-stream", New String() { ... })>
<ProducesResponseTypeAttribute(200)>
Public Function GetPreviewFile (
<FromQueryAttribute> fileID As Guid,
<FromQueryAttribute> token As String,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of IActionResult)
public:
[HttpGetAttribute(L"preview-file")]
[SessionMethodAttribute(UserAccessLevel::Regular, false, __gc new array<String^>^ { ... })]
[ProducesAttribute(L"application/octet-stream", __gc new array<String^>^ { ... })]
[ProducesResponseTypeAttribute(200)]
Task<IActionResult^>^ GetPreviewFile(
[FromQueryAttribute] Guid fileID,
[FromQueryAttribute] String^ token,
CancellationToken cancellationToken = CancellationToken()
)
[<HttpGetAttribute("preview-file")>]
[<SessionMethodAttribute(UserAccessLevel.Regular, false, new string[] { ... })>]
[<ProducesAttribute("application/octet-stream", new string[] { ... })>]
[<ProducesResponseTypeAttribute(200)>]
member GetPreviewFile :
[<FromQueryAttribute>] fileID : Guid *
[<FromQueryAttribute>] token : string *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<IActionResult>
- fileID Guid
- File identifier.
- token String
- File access token.
- cancellationToken CancellationToken (Optional)
Propagates notification that operations should be canceled.
TaskIActionResultStream with file contents.