},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)
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. |
httpMethod | HttpMethod | The http method. |
expiration | TimeSpan | A timespan that will be added to the current DateTime. |
headers = null | IEnumerable | 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, HttpMethod httpMethod, TimeSpan expiration, IEnumerable<KeyValuePair<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. |
httpMethod | HttpMethod | The http method. |
expiration | TimeSpan | A timespan that will be added to the current DateTime. |
headers = null | IEnumerable | 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