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