3using System.Threading.Tasks;
18 public string Uid =>
throw new NotImplementedException();
21 public string Username =>
throw new NotImplementedException();
35 public Task
RunImpersonated(Action action, CancellationToken cancellationToken) =>
throw new NotSupportedException();
ISystemIdentity for POSIX systems.
string Uid
A unique identifier for the user.
bool IsSuperUser
Is this identity a SuperUser for the OS. See Administrator on Windows or root on Linux.
string Username
The user's name.
ISystemIdentity Clone()
Clone the ISystemIdentity creating another copy that must have IDisposable.Dispose called on it....
bool CanCreateSymlinks
If this system identity has permissions to create symlinks.
Task RunImpersonated(Action action, CancellationToken cancellationToken)
Runs a given action in the context of the ISystemIdentity.A Task representing the running operation.
Represents a user on the current global::System.Runtime.InteropServices.OSPlatform.