dotnet / orleans

Cloud Native application framework for .NET
https://docs.microsoft.com/dotnet/orleans
MIT License
9.89k stars 2.01k forks source link

`UseUnixSocketConnection` not working #8969

Open azeno opened 1 month ago

azeno commented 1 month ago

There seems to be a typo in the service registration https://github.com/dotnet/orleans/blob/722be42f1646d1c0c85de0a70d492a2ca7f1a5d6/src/Orleans.TestingHost/UnixSocketTransport/UnixSocketConnectionExtensions.cs#L16

It registers with the service type object instead of IConnectionFactory.

Simply dropping the object part on those lines fixes the registration:

services.AddKeyedSingleton<IConnectionFactory>(SiloConnectionFactory.ServicesKey, CreateUnixSocketConnectionFactory());