tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
IFileTransferStreamHandler.cs
Go to the documentation of this file.
1using System;
2using System.IO;
3using System.Threading;
4using System.Threading.Tasks;
5
7
9{
14 {
22 ValueTask<ErrorMessageResponse?> SetUploadStream(FileTicketResponse ticketResponse, Stream stream, CancellationToken cancellationToken);
23
30 ValueTask<Tuple<Stream?, ErrorMessageResponse?>> RetrieveDownloadStream(FileTicketResponse ticketResponse, CancellationToken cancellationToken);
31 }
32}
Response for when file transfers are necessary.
Reads and writes to Streams associated with FileTicketResponses.
ValueTask< Tuple< Stream?, ErrorMessageResponse?> > RetrieveDownloadStream(FileTicketResponse ticketResponse, CancellationToken cancellationToken)
Gets the the Stream for a given ticketResponse associated with a pending download.
ValueTask< ErrorMessageResponse?> SetUploadStream(FileTicketResponse ticketResponse, Stream stream, CancellationToken cancellationToken)
Sets the Stream for a given ticketResponse associated with a pending upload.