Could not load type 'Orleans.ObserverSubscriptionManager`1' from assembly 'Orleans.Core, Version=2.0.0.0
I'm getting exception described below when try to use client observers (the simple implementation as described here https://dotnet.github.io/orleans/Documentation/Getting-Started-With-Orleans/Observers.html).
System.TypeLoadException: Could not load type 'Orleans.ObserverSubscriptionManager1' from assembly 'Orleans.Core, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null'.
at GrainCollection.Office365PurchaseTransaction.
I'm using v2.0.0-rc1 version hosted in .NET Core console application. If ObserverSubscriptionManager is obsolete and moved to the legacy package as described here https://github.com/dotnet/orleans/pull/3999 and isn't works correctly with the new version of framework
What approach I should use to be able to use push-based model for notifications from the cluster to the client?
@KTazayan it sounds as though either not all of the assemblies were updated to 2.0.0-rc1 or there's something stale in the build output. Could you double check that everything has been upgraded and then run a full clean and try again?
Does look like a version mismatch to me - a project thinks that ObserverSubscriptionManager is in Orleans.Core, where it used to be, while it is actually in Orleans.Core.Legacy now.
You are right, after clean and reinstall everything works. Thank you! Also what about the second question. What is the preferred way to organize push-based approach for notifications from the cluster to the client? I mean version 2.0.0 of the framework. I didn't find anything about that from documentation. As I understand ObserverSubscriptionManager is not recommended way for that.
Users generally favor streams for pushing to clients, but either way is fine in my opinion.
Ok, thank you.