I'm sure I've missed something or backed myself into some strange frustrated corner, but here is what I'm trying to do.
I have a WPF application, using Unity as IoC. I have a number of services that have an interface. I deal with my services via the interfaces so the services can be swapped out easily or so that I can offer a choice to the end-user. All standard interface programming stuff.
In reality, all my services implement ReactiveObject. I am now wanting to do some command handling stuff and am trying to get the CanExecute behaviour working.
My basic problem is I cannot use WhenAny unless I cast the interface to a physical implementation (thus get the full type hierarchy for compilation, which can see WhenAny). However, this cast violates interfaces and means I lose the ability to swap out implementations.
Is there a ReactiveUI interface that exposes WhenAny etc that I could derive my service interfaces from and thus be able to use the great features of ReactiveUI whilst remaining non-type specific?