<PackageReference Include="System.Security.Permissions" Version="9.0.0" />

SecurityContextSource

public enum SecurityContextSource
Identifies the source for the security context.
namespace System.Security { public enum SecurityContextSource { CurrentAppDomain, CurrentAssembly } }