tgstation-server
6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
src
Tgstation.Server.Client
ITransferClient.cs
Go to the documentation of this file.
1
using
System.IO;
2
using
System.Threading;
3
using
System.Threading.Tasks;
4
5
using
Tgstation.Server.Api.Models.Response
;
6
7
namespace
Tgstation.Server.Client
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
}
Stream
Tgstation.Server.Api.Models.Response.FileTicketResponse
Response for when file transfers are necessary.
Definition
FileTicketResponse.cs:7
Tgstation.Server.Client.ITransferClient
For transferring data Streams.
Definition
ITransferClient.cs:13
Tgstation.Server.Client.ITransferClient.Upload
ValueTask Upload(FileTicketResponse ticket, Stream? uploadStream, CancellationToken cancellationToken)
Uploads a given uploadStream for a given ticket .
Tgstation.Server.Client.ITransferClient.Download
ValueTask< Stream > Download(FileTicketResponse ticket, CancellationToken cancellationToken)
Downloads a file Stream for a given ticket .
Tgstation.Server.Api.Models.Response
Definition
AdministrationResponse.cs:6
Tgstation.Server.Client
Definition
AuthenticatedGraphQLServerClient.cs:12
Generated by
1.9.8