I have a CLI app in .NET, built with Spectre.Console.Cli package. I use ServiceCollection with Spectre ITypeResolver and ITypeRegistrar interfaces to wire up the DI. That works great, but now I want to add a Serilog SignalR sink to send logs over the network for the time of command execution. I am lost in the woods trying to tackle this and how to combine Spectre with Generic Host. Anyone had the same problem by any chance or has an idea how to tackle this? I am not looking for a complete solution, a nudge in the right direction will be more than welcome.
Best practices