oakton
oakton copied to clipboard
Support Keyed services
Using .NET 8 and registered keyed services. Also using Lamar, Wolverine, Marten.
System.InvalidOperationException
HResult=0x80131509
Message=This service descriptor is keyed. Your service provider may not support keyed services.
Source=Microsoft.Extensions.DependencyInjection.Abstractions
StackTrace:
at Microsoft.Extensions.DependencyInjection.ServiceDescriptor.ThrowKeyedDescriptor()
at Microsoft.Extensions.DependencyInjection.ServiceDescriptor.get_ImplementationType()
at Oakton.Resources.ResourceHostExtensions.<>c.<AddResourceSetupOnStartup>b__0_0(ServiceDescriptor x)
at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source, Func`2 predicate)
at Oakton.Resources.ResourceHostExtensions.AddResourceSetupOnStartup(IServiceCollection services, StartupAction action)
at Program.<<Main>$>d__0.MoveNext()