Skip to content

},System.Boolean)} },System.Boolean)}

RelativeTimeExtensions.DownloadUrl(IBlobCache, string, HttpMethod, TimeSpan, IEnumerable>?, bool) method

Defined in

Type: RelativeTimeExtensions Namespace: ReactiveMarbles.CacheDatabase.Core Assembly: ReactiveMarbles.CacheDatabase.Core.dll

Applies to

netstandard2.0

Overloads

  • 1. public static IObservable<byte[]> DownloadUrl(this IBlobCache blobCache, string url, HttpMethod httpMethod, TimeSpan expiration, IEnumerable<KeyValuePair<string, string>>? headers = null, bool fetchAlways = false)
  • 2. public static IObservable<byte[]> DownloadUrl(this IBlobCache blobCache, Uri url, HttpMethod httpMethod, TimeSpan expiration, IEnumerable<KeyValuePair<string, string>>? headers = null, bool fetchAlways = false)

1. Overload

public static IObservable<byte[]> DownloadUrl(this IBlobCache blobCache, string url, HttpMethod httpMethod, TimeSpan expiration, IEnumerable<KeyValuePair<string, string>>? headers = null, bool fetchAlways = false)

View source

Summary: Downloads the specified url if there is not already a entry in the cache.

Parameters

NameTypeDescription
blobCache[IBlobCache](#The blob cache to insert the item into.
urlstringThe URL to download if not already in the cache.
httpMethodHttpMethodThe http method.
expirationTimeSpanA timespan that will be added to the current DateTime.
headers = nullIEnumerable>?The headers to specify when getting the entry.
fetchAlways = falseboolIf we should fetch always and not return the cache entry if available.

Returns: IObservable -- A observable which will signal when the data is available.

2. Overload

public static IObservable<byte[]> DownloadUrl(this IBlobCache blobCache, Uri url, HttpMethod httpMethod, TimeSpan expiration, IEnumerable<KeyValuePair<string, string>>? headers = null, bool fetchAlways = false)

View source

Summary: Downloads the specified url if there is not already a entry in the cache.

Parameters

NameTypeDescription
blobCache[IBlobCache](#The blob cache to insert the item into.
urlUriThe URL to download if not already in the cache.
httpMethodHttpMethodThe http method.
expirationTimeSpanA timespan that will be added to the current DateTime.
headers = nullIEnumerable>?The headers to specify when getting the entry.
fetchAlways = falseboolIf we should fetch always and not return the cache entry if available.

Returns: IObservable -- A observable which will signal when the data is available.