escendit / rabbitmq-dotnet-extensions

RabbitMQ Client Extensions for .NET and Orleans
MIT License
1 stars 2 forks source link

Orleans 7.2.1 #16

Closed Da-Teach closed 7 months ago

Da-Teach commented 10 months ago

Although I suspect you found this out as well, this package is not compatible with Orleans 7.2.1. It'll crash during startup with a MissingMethodException: Method not found: 'System.Threading.Tasks.ValueTask Orleans.Runtime.GrainReference.InvokeAsync(Orleans.Serialization.Invocation.IInvokable)'.

snovak7 commented 10 months ago

Yes, one way to get around the problem is to use explicit version Microsoft.Orleans.Core to 7.2.1

But if you're using this outside of Orleans you need to register one service first, to support named services.

snovak7 commented 9 months ago

I found the registration code

.TryAddSingleton(typeof(IKeyedServiceCollection<,>), typeof(KeyedServiceCollection<,>));

Works with Microsoft.Orleans.Core package