AiFilesControllerGetFileContent - метод
Get the file content (base or derived - extracted text or pages) with specified identifier from AI cache.
Пространство имён: Tessa.Web.ControllersСборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.2.0+ffad8363f63902f18b3b3f4cfa533a14b2fb19a6
[HttpGetAttribute("file-content")]
[SessionMethodAttribute(UserAccessLevel.Regular, false, new string[] { ... })]
[ProducesAttribute("application/octet-stream", new string[] { ... })]
[ProducesResponseTypeAttribute(200)]
public Task<IActionResult> GetFileContent(
[FromQueryAttribute] Guid fileID,
[FromQueryAttribute] string token,
[FromQueryAttribute] AiFileRequestOperation operation = AiFileRequestOperation.AsIs,
[FromQueryAttribute] int? page = null,
CancellationToken cancellationToken = default
)
<HttpGetAttribute("file-content")>
<SessionMethodAttribute(UserAccessLevel.Regular, false, New String() { ... })>
<ProducesAttribute("application/octet-stream", New String() { ... })>
<ProducesResponseTypeAttribute(200)>
Public Function GetFileContent (
<FromQueryAttribute> fileID As Guid,
<FromQueryAttribute> token As String,
<FromQueryAttribute> Optional operation As AiFileRequestOperation = AiFileRequestOperation.AsIs,
<FromQueryAttribute> Optional page As Integer? = Nothing,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of IActionResult)
public:
[HttpGetAttribute(L"file-content")]
[SessionMethodAttribute(UserAccessLevel::Regular, false, __gc new array<String^>^ { ... })]
[ProducesAttribute(L"application/octet-stream", __gc new array<String^>^ { ... })]
[ProducesResponseTypeAttribute(200)]
Task<IActionResult^>^ GetFileContent(
[FromQueryAttribute] Guid fileID,
[FromQueryAttribute] String^ token,
[FromQueryAttribute] AiFileRequestOperation operation = AiFileRequestOperation::AsIs,
[FromQueryAttribute] Nullable<int> page = nullptr,
CancellationToken cancellationToken = CancellationToken()
)
[<HttpGetAttribute("file-content")>]
[<SessionMethodAttribute(UserAccessLevel.Regular, false, new string[] { ... })>]
[<ProducesAttribute("application/octet-stream", new string[] { ... })>]
[<ProducesResponseTypeAttribute(200)>]
member GetFileContent :
[<FromQueryAttribute>] fileID : Guid *
[<FromQueryAttribute>] token : string *
[<FromQueryAttribute>] ?operation : AiFileRequestOperation *
[<FromQueryAttribute>] ?page : Nullable<int> *
?cancellationToken : CancellationToken
(* Defaults:
let _operation = defaultArg operation AiFileRequestOperation.AsIs
let _page = defaultArg page null
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<IActionResult>
- fileID Guid
- File identifier.
- token String
- File access token.
- operation AiFileRequestOperation (Optional)
Operation to be performed alongside putting the file in AI cache.
- page NullableInt32 (Optional)
- Page number. Only required when operation is AiFileRequestOperation.Page
- cancellationToken CancellationToken (Optional)
Propagates notification that operations should be canceled.
TaskIActionResultStream with file contents.