Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GetStream()

Stream System.Xml.XmlDownloadManager.GetStream ( Uri uri,
ICredentials credentials,
IWebProxy proxy )
inlinepackage

Definition at line 10 of file XmlDownloadManager.cs.

11 {
12 if (uri.Scheme == "file")
13 {
14 return new FileStream(uri.LocalPath, FileMode.Open, FileAccess.Read, FileShare.Read, 1);
15 }
16 return GetNonFileStreamAsync(uri, credentials, proxy).GetAwaiter().GetResult();
17 }
async Task< Stream > GetNonFileStreamAsync(Uri uri, ICredentials credentials, IWebProxy proxy)

References System.Xml.Dictionary, System.Xml.XmlDownloadManager.GetNonFileStreamAsync(), System.Uri.LocalPath, and System.Uri.Scheme.