-
Hi, it might be that I'm looking in the wrong places, but I can't find any documentation on the following issue. I wrote a custom integration to "manage" the system name and connection details of the Akka actor system that I'm using in my app. It is fairly simple and the only goal is that is delivers a connection string to the resources that refer to it so that it can get the configuration settings from that connection string. It works as expected, however, in the dashboard the resources have a state uknown, which is a pitty. How can I set this state to active? Resource itself is defined as (and has only some basic properties):
It shows then up the dashboard as below, but it would be great if can set it active. Any info on how to set this resource state in the docu somewhere? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
You can mark it Running with something like this /~https://github.com/davidfowl/aspire-ai-chat-demo/blob/c9beaa2bb4fa5ca61e3a6db0ef119540af06f370/AIChat.AppHost/ModelExtensions.cs#L107-L114 Also see #7826 |
Beta Was this translation helpful? Give feedback.
-
Solved with the pointer to the code (a bit pity this isn't documented anywhere) but now it works as expected. Thank you for that. The IResourceWithoutLifetime as described in #7826 would indeed be even a better solution because that is exactly what it is! |
Beta Was this translation helpful? Give feedback.
You can mark it Running with something like this /~https://github.com/davidfowl/aspire-ai-chat-demo/blob/c9beaa2bb4fa5ca61e3a6db0ef119540af06f370/AIChat.AppHost/ModelExtensions.cs#L107-L114
Also see #7826