Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
XmlUrlResolver.cs
Go to the documentation of this file.
1using System.IO;
2using System.Net;
7
8namespace System.Xml;
9
11{
13
15
17
19
20 [UnsupportedOSPlatform("browser")]
21 public override ICredentials? Credentials
22 {
23 set
24 {
26 }
27 }
28
29 [UnsupportedOSPlatform("browser")]
31 {
32 set
33 {
34 _proxy = value;
35 }
36 }
37
39 {
40 set
41 {
42 }
43 }
44
45 public override object? GetEntity(Uri absoluteUri, string? role, Type? ofObjectToReturn)
46 {
47 if ((object)ofObjectToReturn == null || ofObjectToReturn == typeof(Stream) || ofObjectToReturn == typeof(object))
48 {
50 }
51 throw new XmlException(System.SR.Xml_UnsupportedClass, string.Empty);
52 }
53
54 public override Uri ResolveUri(Uri? baseUri, string? relativeUri)
55 {
56 return base.ResolveUri(baseUri, relativeUri);
57 }
58
60 {
62 {
63 return await DownloadManager.GetStreamAsync(absoluteUri, _credentials, _proxy).ConfigureAwait(continueOnCapturedContext: false);
64 }
65 throw new XmlException(System.SR.Xml_UnsupportedClass, string.Empty);
66 }
67}
static string Xml_UnsupportedClass
Definition SR.cs:278
Definition SR.cs:7
static int CompareExchange(ref int location1, int value, int comparand)
override? ICredentials Credentials
override? object GetEntity(Uri absoluteUri, string? role, Type? ofObjectToReturn)
static XmlDownloadManager DownloadManager
override Uri ResolveUri(Uri? baseUri, string? relativeUri)
RequestCachePolicy CachePolicy
static XmlDownloadManager s_downloadManager
override async Task< object > GetEntityAsync(Uri absoluteUri, string? role, Type? ofObjectToReturn)