man-group / dapr-sidekick-dotnet

Dapr Sidekick for .NET - a lightweight lifetime management component for Dapr
Apache License 2.0
175 stars 21 forks source link

Sidekick in Console apps #35

Closed stacyh3 closed 2 years ago

stacyh3 commented 2 years ago

This might be easier than I think, but is it possible to use Sidekick in a console app? I have a simulated message sender that I'm using for testing and Sidekick would make this much easier. I did look through the docs, but didn't find anything. I'll try to read through the code as well, but I wanted to save some time by asking here.

If this is not a currently supported scenario, it might be one that's worth looking at for the future.

badgeratu commented 2 years ago

Yes, Sidekick is designed for Console use as well, where you need to use the DaprSidekickBuilder class. See the Wcf Sample for an example of how to get it working.

stacyh3 commented 2 years ago

Thanks!