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.

1 Reply 1

Can you add at least your "setup" code, so we can see, what we are talking about?

Your Reply

By clicking “Post Your Reply”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.