Hi everyone.
I've got a problem with the changes api, and I'm not certain whether it's me or a bug.
I have something similar to this:
_changes = _store.Changes(DbName);
_changes.ForAllDocuments().Subscribe(OnChange);
In OnChange I'm checking to see if the change type is put or delete.
Now, if RavenDB is running, everything works so slick I couldn't begin to say how simple this is.
If for any reason RavenDB isn't running then bad things happen. I've just started learning RX so be gentle.
An exception is thrown from ObservableLineStream.Start in the Raven.Client.Lightweight project (I got the source and had a quick read, version 2.0.3.13)
The RunAsync().ContinueWith(task => usually works fine until the database isn't available, and in that case task.Result throws an AggregateException which I cannot catch in my consuming code (I'm guessing this i because it's in a different thread or...).
The second ContinueWith is never fired in this case.
My goals are fairly simple, this change api code will be in a web application, if anything ever changes in the RavenDB then update the memory cache in an application.
Any ideas are greatly appreciated.
Thanks,
Dan
--
You received this message because you are subscribed to the Google Groups "ravendb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.