Skip to content

},System.Boolean,System.Nullable{System.DateTimeOffset})} },System.Boolean,System.Nullable{System.DateTimeOffset})} },System.Boolean,System.Nullable{System.DateTimeOffset})} },System.Boolean,System.Nullable{System.DateTimeOffset})}

IHttpService.DownloadUrl(IBlobCache, string, HttpMethod?, IEnumerable>?, bool, DateTimeOffset?) method

Defined in

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

Applies to

netstandard2.0

Overloads

  • 1. IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string url, HttpMethod? method = null, IEnumerable<KeyValuePair<string, string>>? headers = null, bool fetchAlways = false, DateTimeOffset? absoluteExpiration = null)
  • 2. IObservable<byte[]> DownloadUrl(IBlobCache blobCache, Uri url, HttpMethod? method = null, IEnumerable<KeyValuePair<string, string>>? headers = null, bool fetchAlways = false, DateTimeOffset? absoluteExpiration = null)
  • 3. IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string key, string url, HttpMethod? method = null, IEnumerable<KeyValuePair<string, string>>? headers = null, bool fetchAlways = false, DateTimeOffset? absoluteExpiration = null)
  • 4. IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string key, Uri url, HttpMethod? method = null, IEnumerable<KeyValuePair<string, string>>? headers = null, bool fetchAlways = false, DateTimeOffset? absoluteExpiration = null)

1. Overload

IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string url, HttpMethod? method = null, IEnumerable<KeyValuePair<string, string>>? headers = null, bool fetchAlways = false, DateTimeOffset? absoluteExpiration = null)

Summary: Gets a observable for a download.

Parameters

NameTypeDescription
blobCache[IBlobCache](#The blob cache where to get the value from if available.
urlstringThe url where to get the resource if not available in the cache.
method = nullHttpMethod?The http method.
headers = nullIEnumerable>?The headers to use in the HTTP action.
fetchAlways = falseboolIf we should just fetch and not bother checking the cache first.
absoluteExpiration = nullDateTimeOffset?A optional expiration date time.

Returns: IObservable -- A observable that signals when there is byte data.

2. Overload

IObservable<byte[]> DownloadUrl(IBlobCache blobCache, Uri url, HttpMethod? method = null, IEnumerable<KeyValuePair<string, string>>? headers = null, bool fetchAlways = false, DateTimeOffset? absoluteExpiration = null)

Summary: Gets a observable for a download.

Parameters

NameTypeDescription
blobCache[IBlobCache](#The blob cache where to get the value from if available.
urlUriThe url where to get the resource if not available in the cache.
method = nullHttpMethod?The http method.
headers = nullIEnumerable>?The headers to use in the HTTP action.
fetchAlways = falseboolIf we should just fetch and not bother checking the cache first.
absoluteExpiration = nullDateTimeOffset?A optional expiration date time.

Returns: IObservable -- A observable that signals when there is byte data.

3. Overload

IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string key, string url, HttpMethod? method = null, IEnumerable<KeyValuePair<string, string>>? headers = null, bool fetchAlways = false, DateTimeOffset? absoluteExpiration = null)

Summary: Gets a observable for a download.

Parameters

NameTypeDescription
blobCache[IBlobCache](#The blob cache where to get the value from if available.
keystringThe key to use for the download cache entry.
urlstringThe url where to get the resource if not available in the cache.
method = nullHttpMethod?The http method.
headers = nullIEnumerable>?The headers to use in the HTTP action.
fetchAlways = falseboolIf we should just fetch and not bother checking the cache first.
absoluteExpiration = nullDateTimeOffset?A optional expiration date time.

Returns: IObservable -- A observable that signals when there is byte data.

4. Overload

IObservable<byte[]> DownloadUrl(IBlobCache blobCache, string key, Uri url, HttpMethod? method = null, IEnumerable<KeyValuePair<string, string>>? headers = null, bool fetchAlways = false, DateTimeOffset? absoluteExpiration = null)

Summary: Gets a observable for a download.

Parameters

NameTypeDescription
blobCache[IBlobCache](#The blob cache where to get the value from if available.
keystringThe key to use for the download cache entry.
urlUriThe url where to get the resource if not available in the cache.
method = nullHttpMethod?The http method.
headers = nullIEnumerable>?The headers to use in the HTTP action.
fetchAlways = falseboolIf we should just fetch and not bother checking the cache first.
absoluteExpiration = nullDateTimeOffset?A optional expiration date time.

Returns: IObservable -- A observable that signals when there is byte data.