Replies: 1 comment
-
There is so much unknown for me in your setup to say anything. Or you may provide the isolated failing Test, so that I can look. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Set up code
var container = DryIocSetup.MvcContainer.CreateFacade(facadeKey: "TaskConfig");
container.Register<IPrincipal, BackgroundTaskPrincipal>(reuse: Reuse.Transient);
ScopeContextFactory.Instance = container.BuildServiceProvider();
using container
using var scope = ScopeContextFactory.Instance.CreateScope();
var svc = scope.ServiceProvider.GetRequiredService();
This FormTemplateService has a IPrincipal in the constructor.
Using version 5.1 this is populated with BackgroundTaskPrincipal, when I update to version 6.2 it is now null.
This code is not written by me, I'm updating an old project to Net 8.0.
Do I need to change the code for the change of behaviour, or is there a bug in the newer version?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions