Skip to content

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

RelativeTimeMixin.DownloadUrl(IBlobCache, string, TimeSpan, Dictionary?, bool) method

Defined in

Type: RelativeTimeMixin Namespace: Akavache Assembly: Akavache.Core.dll

Applies to

net9.0, net9.0-maccatalyst18.0, net9.0-macos15.0, net9.0-tvos18.0, net9.0-android35.0, net9.0-ios18.0, net8.0, net8.0-android34.0, net8.0-macos14.5, net8.0-ios18.0, net8.0-maccatalyst18.0, net8.0-macos15.0, net8.0-tvos18.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-tvos17.2, netstandard2.1, netstandard2.0

Overloads

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

1. Overload

public static IObservable<byte[]> DownloadUrl(this IBlobCache blobCache, string url, TimeSpan expiration, Dictionary<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.
expirationTimeSpanA timespan that will be added to the current DateTime.
headers = nullDictionary?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, TimeSpan expiration, Dictionary<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.
expirationTimeSpanA timespan that will be added to the current DateTime.
headers = nullDictionary?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.