2016-08-03 10:59:49 +00:00
|
|
|
|
|
|
|
using System.Security.Permissions;
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
namespace System.Xml {
|
|
|
|
|
|
|
|
[PermissionSetAttribute(SecurityAction.InheritanceDemand, Name = "FullTrust")]
|
|
|
|
public partial class XmlSecureResolver : XmlResolver {
|
|
|
|
public override Task<object> GetEntityAsync(Uri absoluteUri, string role, Type ofObjectToReturn) {
|
2017-04-10 11:41:01 +00:00
|
|
|
#if MONO_FEATURE_CAS
|
2016-08-03 10:59:49 +00:00
|
|
|
permissionSet.PermitOnly();
|
|
|
|
#endif
|
|
|
|
return resolver.GetEntityAsync(absoluteUri, role, ofObjectToReturn);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|