jet / dotnet-templates

Example app and service templates `dotnet new -i Equinox.Templates; dotnet new eqx*/pro*` https://github.com/jet/equinox https://github.com/jet/FsCodec
https://github.com/jet/propulsion
Apache License 2.0
64 stars 16 forks source link

Fix connection management in [F#] equinox-web #7

Closed bartelink closed 2 years ago

bartelink commented 5 years ago

TL;DR remove all RunSynchronously as that was only chucked in there in the interests of getting something out

In the C# port in #5, I took the time to make the initialization a) happen as part of startup b) before loading c) without blocking a thread d) without wacky side -effects in the DI

bartelink commented 2 years ago

While it's not perfect, the way things work is much cleaner now in https://github.com/jet/dotnet-templates/pull/104 Updating the templates to align with more modern ASP.NET Core 6 idioms re removal of type Startup needs to happen at some point but I'm closing it for now as it's Good Enough

There may also be a point in time when https://github.com/oskardudycz/EventSourcing.NetCore/pull/84 either presents a better example, or we backport the patterns evolving in there to here.