tgstation-server 5.12.7
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 Task<ErrorMessageResponse> SetUploadStream(FileTicketResponse ticket, Stream stream, CancellationToken cancellationToken);
23
30 Task<Tuple<Stream, ErrorMessageResponse>> RetrieveDownloadStream(FileTicketResponse ticket, CancellationToken cancellationToken);
31 }
32}
Response for when file transfers are necessary.
Reads and writes to Streams associated with FileTicketResponses.
Task< ErrorMessageResponse > SetUploadStream(FileTicketResponse ticket, Stream stream, CancellationToken cancellationToken)
Sets the Stream for a given ticket associated with a pending upload.
Task< Tuple< Stream, ErrorMessageResponse > > RetrieveDownloadStream(FileTicketResponse ticket, CancellationToken cancellationToken)
Gets the the Stream for a given ticket associated with a pending download.