Closed repne closed 1 year ago
We no longer support stitching. Its time to move to fusion :) https://chillicream.com/blog/2023/08/15/graphql-fusion
Note... this issue isn't really due to stitching. v13 fails when resolving any service from the service provider that has a keyed version. This includes if you register a single keyed and resolve via IEnumerable<>. Keyed services in .NET 8 require an extra interface to be implemented on the scope otherwise they crash.
see: https://github.com/dotnet/runtime/issues/89447 for the same issue occurring in asp.net before release.
Is there an existing issue for this?
Product
Hot Chocolate
Describe the bug
When using the new .NET 8 IKeyedServiceProvider (.AddKeyedSingleton, .AddKeyedScoped, etc...)
AddLocalSchema
andAddRemoteSchema
will throw an exception.Steps to reproduce
This
will throw
but moving
AddKeyedSingleton
after theAddLocalSchema
callwill work just fine.
Relevant log output
No response
Additional Context?
No response
Version
13.5.1