Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrap IOrchardShellEvents into WorkContext #4852

Closed
orchardbot opened this issue Oct 22, 2014 · 1 comment
Closed

Wrap IOrchardShellEvents into WorkContext #4852

orchardbot opened this issue Oct 22, 2014 · 1 comment

Comments

@orchardbot
Copy link

@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.

@orchardbot
Copy link
Author

@Piedone commented:

Related: https://orchard.codeplex.com/workitem/20738

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants