I've installed akavache
Nuget package (tried v5.0 and v6.0.0-alpha and I am using .NET Standard), but don't have access to GetObjectAsync
mentioned in many examples through the web. (Even on the official page).
I am considering this is rather not Akavache's methods but Rx extensions or something, but could not find if (and where) I can use it.
For instance, BlobCache.UserAccount
just doesn't have it and I am shown syntax error.
Any clue?
GetObjectAsync
was removed from Akavache becauseSystem.Reactive
provides the means to convert anObservable
in to aTask
. In fact, anObservable
can even be awaited.GetObject
returns anIObservable
and can be used in place ofGetObjectAsync
, so long as theSystem.Reactive.Linq
namespace is imported.Note: An awaited
Observable
is expected toOnNext
a single value only. IfOnNext
is invoked 2 or more times, or not at all, an exception will be thrown.OnError
will also cause an exception to be thrown.The documentation has been updated to exclude
GetObjectAsync
as of 2018.08.28.