CardsControllerGetFileContentByToken - метод
Get contents for a file by content token.
Пространство имён: Tessa.Web.ControllersСборка: Tessa.Web (в Tessa.Web.dll) Версия: 4.0.8
[HttpGetAttribute("file-content")]
[SessionMethodAttribute(UserAccessLevel.Regular, true)]
[ProducesAttribute("application/octet-stream", new string[] { ... })]
[ProducesResponseTypeAttribute(200)]
public Task<FileResult> GetFileContentByToken(
[FromQueryAttribute] string token,
[FromQueryAttribute][SessionTokenAttribute] string? session = null,
CancellationToken cancellationToken = default
)
<HttpGetAttribute("file-content")>
<SessionMethodAttribute(UserAccessLevel.Regular, true)>
<ProducesAttribute("application/octet-stream", New String() { ... })>
<ProducesResponseTypeAttribute(200)>
Public Function GetFileContentByToken (
<FromQueryAttribute> token As String,
<FromQueryAttribute><SessionTokenAttribute> Optional session As String = Nothing,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of FileResult)
public:
[HttpGetAttribute(L"file-content")]
[SessionMethodAttribute(UserAccessLevel::Regular, true)]
[ProducesAttribute(L"application/octet-stream", __gc new array<String^>^ { ... })]
[ProducesResponseTypeAttribute(200)]
Task<FileResult^>^ GetFileContentByToken(
[FromQueryAttribute] String^ token,
[FromQueryAttribute][SessionTokenAttribute] String^ session = nullptr,
CancellationToken cancellationToken = CancellationToken()
)
[<HttpGetAttribute("file-content")>]
[<SessionMethodAttribute(UserAccessLevel.Regular, true)>]
[<ProducesAttribute("application/octet-stream", new string[] { ... })>]
[<ProducesResponseTypeAttribute(200)>]
member GetFileContentByToken :
[<FromQueryAttribute>] token : string *
[<FromQueryAttribute>][<SessionTokenAttribute>] ?session : string *
?cancellationToken : CancellationToken
(* Defaults:
let _session = defaultArg session null
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<FileResult>
- token String
- Content token.
- session String (Optional)
-
Session token. (XML-format encoded to base64) or null if the session token is passed in another suitable way, for example, in cookies.
- cancellationToken CancellationToken (Optional)
- Token to cancel async task.
TaskFileResultResponse
FileStreamResult.