,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)
Summary: Downloads the specified url if there is not already a entry in the cache.
Parameters
| Name | Type | Description |
|---|---|---|
blobCache | [IBlobCache](# | The blob cache to insert the item into. |
url | string | The URL to download if not already in the cache. |
expiration | TimeSpan | A timespan that will be added to the current DateTime. |
headers = null | Dictionary | The headers to specify when getting the entry. |
fetchAlways = false | bool | If we should fetch always and not return the cache entry if available. |
Returns: IObservable
2. Overload¶
public static IObservable<byte[]> DownloadUrl(this IBlobCache blobCache, Uri url, TimeSpan expiration, Dictionary<string, string>? headers = null, bool fetchAlways = false)
Summary: Downloads the specified url if there is not already a entry in the cache.
Parameters
| Name | Type | Description |
|---|---|---|
blobCache | [IBlobCache](# | The blob cache to insert the item into. |
url | Uri | The URL to download if not already in the cache. |
expiration | TimeSpan | A timespan that will be added to the current DateTime. |
headers = null | Dictionary | The headers to specify when getting the entry. |
fetchAlways = false | bool | If we should fetch always and not return the cache entry if available. |
Returns: IObservable