dolittle-obsolete / DotNET.Fundamentals

Reusable, fundamental abstractions and building blocks
http://www.dolittle.io
MIT License
4 stars 8 forks source link

Fix grpc server disposing #306

Closed woksin closed 4 years ago

woksin commented 4 years ago

Builds on the previous PR, #305.

This fixes a problem related to grpc throwing an exception because of servers being shutdown multiple times. Simply checking if the endpoint is disposed resolves the problem. Though this could be dealt with in a more sophisticated manner. I tried to find out why the Dispose method was called more than expected, but I was unable to find the answers for that.

Edit: Also changed all logging to use the (string, params object[]) methods

┆Issue is synchronized with this Asana task