This commit is contained in:
TheXamlGuy
2024-06-15 14:24:30 +01:00
parent 370e6bf96b
commit 7a811acde5
11 changed files with 32 additions and 26 deletions
+7 -1
View File
@@ -25,7 +25,13 @@ public class ContentFactory(IMediator mediator,
initialization.Initialize();
}
}, parameters)
: provider.GetRequiredKeyedService(descriptor.ContentType, descriptor.Key);
: provider.GetRequiredKeyedService(descriptor.ContentType, args =>
{
if (args is IInitialization initialization)
{
initialization.Initialize();
}
}, descriptor.Key);
return content;
}