Skip to content
Discussion options

You must be logged in to vote

James Duley (@parched) There are a couple of ways of doing this. Artpupser (@Artpupser) has suggested a couple of possibilities but I have one where I have an explicit package designed to help with this kind of thing.

Using C3D.Extensions.Aspire.OutputWatcher
you can monitor the logged output of a resource and perform actions when a specific string is detected.
There is an example in the repo where it using a console app to do some work and then pass the logged results into another resource as an environment variable.

I did a quick proof of concept for you at CZEMacLeod/JobTriggerApp.

This version uses a magicString (just a guid) that is known by the aspire host and passed to the main ap…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@parched
Comment options

@parched
Comment options

@CZEMacLeod
Comment options

@CZEMacLeod
Comment options

Answer selected by parched
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants