This PR fixes #43 by adding an Initialize overload that takes an existing listener instance. This means I can obtain a listener from my DI container first, then pass it into the plugin.
I also replaced the use of Activator with a simple new, since the generic constraint already allows for that.
This PR fixes #43 by adding an
Initialize
overload that takes an existing listener instance. This means I can obtain a listener from my DI container first, then pass it into the plugin.I also replaced the use of
Activator
with a simplenew
, since the generic constraint already allows for that.