Implement mono_gc_alloc_fixed on Boehm to be uncollectable. This matches SGen behavio...
[mono.git] / mcs / class / referencesource / System.Xml / System / Xml / XmlSecureResolverAsync.cs
1
2 using System.Security.Permissions;
3 using System.Threading.Tasks;
4
5 namespace System.Xml {
6
7     [PermissionSetAttribute(SecurityAction.InheritanceDemand, Name = "FullTrust")]
8     public partial class XmlSecureResolver : XmlResolver {
9         public override Task<object> GetEntityAsync(Uri absoluteUri, string role, Type ofObjectToReturn) {
10 #if FEATURE_MONO_CAS
11             permissionSet.PermitOnly();
12 #endif
13             return resolver.GetEntityAsync(absoluteUri, role, ofObjectToReturn);
14         }
15     }
16 }