Closed MorganMoon closed 6 years ago
This looks good to me, thanks @MorganMoon 👍
Can you please also add this to the ClientBuilder? There might be some code we can move to a new base class for both of the Builder classes to derive from.
Cool, I'll make those changes aswell as soon as I can. :)
Added optional argument on IServerBuilder.SetServiceCollection() for creating the IServiceProvider used in ServerBuilder.
I may be missing something, but I wasn't sure how I could inject my own services into packet handlers using another IoC framework because I could't access what IServiceProvider was being used in the ServerBuilder to resolve them. Perhaps this is an acceptable solution? ;)
Example with DryIoc: