13 private static object s_DownloadManager;
21 private static XmlDownloadManager DownloadManager
25 if (s_DownloadManager ==
null)
27 object value =
new XmlDownloadManager();
30 return (XmlDownloadManager)s_DownloadManager;
77 if (ofObjectToReturn ==
null || ofObjectToReturn == typeof(
Stream) || ofObjectToReturn == typeof(
object))
79 return DownloadManager.GetStream(absoluteUri, _credentials, _proxy, _cachePolicy);
81 throw new XmlException(
"Xml_UnsupportedClass",
string.Empty);
90 [PermissionSet(
SecurityAction.InheritanceDemand, Name =
"FullTrust")]
93 return base.ResolveUri(baseUri, relativeUri);
103 if (ofObjectToReturn ==
null || ofObjectToReturn == typeof(
Stream) || ofObjectToReturn == typeof(
object))
105 return await DownloadManager.GetStreamAsync(absoluteUri, _credentials, _proxy, _cachePolicy).ConfigureAwait(continueOnCapturedContext:
false);
107 throw new XmlException(
"Xml_UnsupportedClass",
string.Empty);
IWebProxy Proxy
Gets or sets the network proxy for the underlying T:System.Net.WebRequest object.
override async Task< object > GetEntityAsync(Uri absoluteUri, string role, Type ofObjectToReturn)
Asynchronously maps a URI to an object that contains the actual resource.
Resolves external XML resources named by a Uniform Resource Identifier (URI).
RequestCachePolicy CachePolicy
Gets or sets the cache policy for the underlying T:System.Net.WebRequest object.
SecurityAction
Specifies the security actions that can be performed using declarative security.
static int CompareExchange(ref int location1, int value, int comparand)
Compares two 32-bit signed integers for equality and, if they are equal, replaces the first value.
Resolves external XML resources named by a Uniform Resource Identifier (URI).
override object GetEntity(Uri absoluteUri, string role, Type ofObjectToReturn)
Maps a URI to an object that contains the actual resource.
Provides the base authentication interface for retrieving credentials for Web client authentication.
Represents type declarations: class types, interface types, array types, value types,...
Defines an application's caching requirements for resources obtained by using T:System....
Returns detailed information about the last exception.
override ICredentials Credentials
Sets credentials used to authenticate web requests.
Provides the base interface for implementation of proxy access for the T:System.Net....
Provides an object representation of a uniform resource identifier (URI) and easy access to the parts...
override Uri ResolveUri(Uri baseUri, string relativeUri)
Resolves the absolute URI from the base and relative URIs.
Provides atomic operations for variables that are shared by multiple threads.
Represents an asynchronous operation that can return a value.
Provides a generic view of a sequence of bytes. This is an abstract class.To browse the ....