-
FromKeyedServices returns null when used in primary constructors
TLDR; this is no longer the case. See this working example. Gives the following output Obsolete post below Today I discovered that, when using NET 8 and a service with primary constructor, the FromKeyedServicesAttribute does nothing (I assume). Perhaps the attribute is magically removed when the code is compiled. I guess that is changed to…
-
NET6+ and WCF headers
While creating a new frontend, written in C# on NET6+ (dotnet core) I stumbled across an issue talking to the old .NET Framework backend. The backend is exposed via WCF, and requires authentication headers to be sent. This is a bit tricky using NET6+, and does not work out of the box when adding the…