tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
IFileUploadTicket.cs
Go to the documentation of this file.
1using System.IO;
2using System.Threading;
3using System.Threading.Tasks;
4
8
10{
15 {
20
26 void SetError(ErrorCode errorCode, string? additionalData);
27
34 new ValueTask<Stream?> GetResult(CancellationToken cancellationToken);
35 }
36}
Response for when file transfers are necessary.
Interface for asynchronously consuming Streams of files.
A FileTicketResponse that waits for a pending upload.
FileTicketResponse Ticket
The FileTicketResponse.
void SetError(ErrorCode errorCode, string? additionalData)
Sets an errorCode that indicates why the consuming operation could not complete. May only be called ...
new ValueTask< Stream?> GetResult(CancellationToken cancellationToken)
Gets the provided Stream. May be called multiple times, though cancelling any may cause all calls to ...
ErrorCode
Types of Response.ErrorMessageResponses that the API may return.
Definition ErrorCode.cs:12