-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add extensiblity article on how to write a non container based custom resource #792
Comments
This article should cover, or link to some kind of meta conversation around whether it makes sense to write a custom resource which is not container based. Consider Aspire as it exists today, all of our resources are either container based, cloud-based (with or without emulators) or core resource types such as parameters. In many cases a custom resource which is not a container could quite possibly be a very thin wrapper around For example, lets say you were calling an Internet hosted API that you couldn't replicate locally. That would really just be a URL and potentially some kind of API key. @davidfowl can you give an example of a custom resource that is not: a) something that you would NOT run locally in a container. |
My aspire YARP resource that runs in process!: |
The resource linked in the article above shows logs from the running container which makes it better than using AddConnectionString IMO. |
Another example are the Azure and AWS resources. |
If this can help, at Workleap we've been using custom resources in three ways:
|
@davidfowl - I like it, want me to put something together based on the YARP example or just create one that add the |
@IEvangelist This is low priority at the moment. We have more important stuff to document 😄. Lets let this sit for a bit. The main thing we'd want to show here is usage of |
As an example:
https://anthonysimmon.com/referencing-external-docker-containers-dotnet-aspire-custom-resources/
It should show how to use lifecycle hooks, the ResourceNotificationService, and the ResourceLoggerService to push updates to the dashboard.
cc @asimmon @mitchdenny
The text was updated successfully, but these errors were encountered: