Dependency injection in custom event handler

Yowaraj Chhetri asked on October 15, 2020 07:07

Hi, I am trying to inject a interface service to a custom event handler, but I am always getting Null Reference error.(System.NullReferenceException: 'Object reference not set to an instance of an object.)

Is there a way to DI in custom event handler Module.

Thanks

Correct Answer

Yowaraj Chhetri answered on October 15, 2020 11:16

This is solved by using Dependency Resolver.

0 votesVote for this answer Unmark Correct answer

   Please, sign in to be able to submit a new answer.