rdelrosario / xamarin-plugins

Cross platform Xamarin & Windows plugins for PCLs
MIT License
178 stars 161 forks source link

Add Initialize overload that takes existing listener instance. #47

Closed kentcb closed 8 years ago

kentcb commented 8 years ago

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.

rdelrosario commented 8 years ago

Nice collaboration. Thanks