unosquare / embedio

A tiny, cross-platform, module based web server for .NET
http://unosquare.github.io/embedio
Other
1.45k stars 175 forks source link

Remove SWAN as a dependency #548

Open rdeago opened 2 years ago

rdeago commented 2 years ago

While working on #546, I have decided to remove the dependency of EmbedIO on SWAN.

My intention is not to denigrate in any way the staggering amount of work @mariodivece and others have put in developing SWAN. It has served its purpose well for years.

However, if we look back at both repository issues and Slack conversations in the last two years, some SWAN features we depend upon (namely, logging / terminal and JSON serialization) have become the second-biggest cause of problems with EmbedIO, after HttpListener (which I'd very much like to get rid of BTW - suggestions welcome).

It looks like the .NET world has been moving forward too:

The recent news that Unosquare has stopped using EmbedIO in their own projects means that there's no danger of introducing dependency conflicts in Unosquare's projects by replacing SWAN. Furthermore, @mariodivece will now be free to remove from SWAN some types that were introduced explicitly to support EmbedIO and could have little or no further use.

As always, comments and criticisms are both heartily welcome.