tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
ISessionPersistor.cs
Go to the documentation of this file.
1using System.Threading;
2using System.Threading.Tasks;
3
5{
9 public interface ISessionPersistor
10 {
17 ValueTask Save(ReattachInformation reattachInformation, CancellationToken cancellationToken);
18
25 ValueTask Update(ReattachInformation reattachInformation, CancellationToken cancellationToken);
26
32 ValueTask<ReattachInformation?> Load(CancellationToken cancellationToken);
33
39 ValueTask Clear(CancellationToken cancellationToken);
40 }
41}
Parameters necessary for duplicating a ISessionController session.
Handles saving and loading ReattachInformation.
ValueTask Update(ReattachInformation reattachInformation, CancellationToken cancellationToken)
Update some reattachInformation .
ValueTask Clear(CancellationToken cancellationToken)
Clear any stored ReattachInformation.
ValueTask< ReattachInformation?> Load(CancellationToken cancellationToken)
Load a saved ReattachInformation.
ValueTask Save(ReattachInformation reattachInformation, CancellationToken cancellationToken)
Save some reattachInformation .