tgstation-server
The /tg/station 13 server suite
ISystemIdentity.cs
Go to the documentation of this file.
1 using System;
2 using System.Threading;
3 using System.Threading.Tasks;
4 
6 {
10  public interface ISystemIdentity : IDisposable
11  {
15  string Uid { get; }
16 
20  string Username { get; }
21 
27 
34  Task RunImpersonated(Action action, CancellationToken cancellationToken);
35  }
36 }
Represents a user on the current global::System.Runtime.InteropServices.OSPlatform
Task RunImpersonated(Action action, CancellationToken cancellationToken)
Runs a given action in the context of the ISystemIdentity
ISystemIdentity Clone()
Clone the ISystemIdentity creating another copy that must have IDisposable.Dispose called on it
string Uid
A unique identifier for the user