this all used to work, we have made some code changes but not anywhere round here. So the event is raised and when i look at MemberCreated it is always null, even though it has been wired up . So it looks like there is no listener to the event.
One thing to note the services are registered using lightinject.
Ok fixed my issue. It was due to the way I was registering my service in the container. There was no lifetime scope set so it would have defaulted to request scope and hence the instance with the wired events was not the one that was passed into the other service.
Events no longer being handled
I have the following class:
Inside one of my services i have:
code like
and further down:
this all used to work, we have made some code changes but not anywhere round here. So the event is raised and when i look at MemberCreated it is always null, even though it has been wired up . So it looks like there is no listener to the event.
One thing to note the services are registered using lightinject.
Anyone any ideas?
Regards
Ismail
Ok fixed my issue. It was due to the way I was registering my service in the container. There was no lifetime scope set so it would have defaulted to request scope and hence the instance with the wired events was not the one that was passed into the other service.
Anyhow changing to :
fixed it
is working on a reply...