tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
ITransferClient.cs
Go to the documentation of this file.
1using System.IO;
2using System.Threading;
3using System.Threading.Tasks;
4
6
8{
12 public interface ITransferClient
13 {
20 ValueTask<Stream> Download(FileTicketResponse ticket, CancellationToken cancellationToken);
21
29 ValueTask Upload(FileTicketResponse ticket, Stream? uploadStream, CancellationToken cancellationToken);
30 }
31}
Response for when file transfers are necessary.
For transferring data Streams.
ValueTask Upload(FileTicketResponse ticket, Stream? uploadStream, CancellationToken cancellationToken)
Uploads a given uploadStream for a given ticket .
ValueTask< Stream > Download(FileTicketResponse ticket, CancellationToken cancellationToken)
Downloads a file Stream for a given ticket .