tgstation-server 6.12.0
The /tg/station 13 server suite
|
For transferring data Streams. More...
Public Member Functions | |
ValueTask< Stream > | Download (FileTicketResponse ticket, CancellationToken cancellationToken) |
Downloads a file Stream for a given ticket . | |
ValueTask | Upload (FileTicketResponse ticket, Stream? uploadStream, CancellationToken cancellationToken) |
Uploads a given uploadStream for a given ticket . | |
For transferring data Streams.
Definition at line 12 of file ITransferClient.cs.
ValueTask< Stream > Tgstation.Server.Client.ITransferClient.Download | ( | FileTicketResponse | ticket, |
CancellationToken | cancellationToken | ||
) |
Downloads a file Stream for a given ticket .
ticket | The FileTicketResponse to download. |
cancellationToken | The CancellationToken for the operation. |
Implemented in Tgstation.Server.Client.ApiClient.
ValueTask Tgstation.Server.Client.ITransferClient.Upload | ( | FileTicketResponse | ticket, |
Stream? | uploadStream, | ||
CancellationToken | cancellationToken | ||
) |
Uploads a given uploadStream for a given ticket .
ticket | The FileTicketResponse to download. |
uploadStream | The Stream to upload. null represents an empty file. |
cancellationToken | The CancellationToken for the operation. |
Implemented in Tgstation.Server.Client.ApiClient.