You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently there is no active WorkContext when IOrchardShellEvents events are fired. Thus if you implement this interface and try to use any injectable dependency in it that depends on a WorkContext being present (this could be the case with a simple Work injection) then you'll get errors like this one.
To mitigate this IOrchardShellEvents could be executed in the scope of a short-lived WorkContext.
The text was updated successfully, but these errors were encountered:
@Piedone created:
https://orchard.codeplex.com/workitem/21023
Currently there is no active WorkContext when IOrchardShellEvents events are fired. Thus if you implement this interface and try to use any injectable dependency in it that depends on a WorkContext being present (this could be the case with a simple Work injection) then you'll get errors like this one.
To mitigate this IOrchardShellEvents could be executed in the scope of a short-lived WorkContext.
The text was updated successfully, but these errors were encountered: