<PackageReference Include="System.Security.Permissions" Version="10.0.0-preview.7.25380.108" />

SecurityContext

public sealed class SecurityContext : IDisposable
Encapsulates and propagates all security-related data for execution contexts transferred across threads. This class cannot be inherited.
using System.Threading; namespace System.Security { public sealed class SecurityContext : IDisposable { internal SecurityContext() { } public static SecurityContext Capture() { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_CAS); } public SecurityContext CreateCopy() { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_CAS); } public void Dispose() { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_CAS); } public static bool IsFlowSuppressed() { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_CAS); } public static bool IsWindowsIdentityFlowSuppressed() { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_CAS); } public static void RestoreFlow() { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_CAS); } public static void Run(SecurityContext securityContext, ContextCallback callback, object state) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_CAS); } public static AsyncFlowControl SuppressFlow() { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_CAS); } public static AsyncFlowControl SuppressFlowWindowsIdentity() { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_CAS); } } }