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

HostSecurityManagerOptions

Specifies the security policy components to be used by the host security manager.
AllFlags = 31

Use all security policy components.

Use the application domain evidence.

Use the assembly evidence.

Route calls to the DetermineApplicationTrust method to the DetermineApplicationTrust method first.

Use the policy level specified in the DomainPolicy property.

Use the ResolvePolicy method to resolve the application evidence.

None = 0

Use none of the security policy components.