How do you load/define dapr components?
I'm not seeing it in the dapr sample, it seems to just start a sidecar that does nothing?
The sample could, for example, demonstrate using a cron binding
Edit:
This is how
.WithDaprSidecar(new DaprSidecarOptions
{
AppId = "your-api",
ResourcesPaths = [
"../your/components",
],
});
@paulyuk thoughts?
@philliphoff is working on this right now!
@philliphoff is this still relevant
@danmoseley The Dapr sample in this repo doesn't require any components as it uses only method invocation. The Dapr sample in the dotnet/aspire repo does, as it makes use of pub-sub and state-store components.
What's the thinking on where proper Aspire samples ought to live, here or in the aspire repo itself? If here, should we move over the one from the aspire repo? It seems like it'd be an extra headache to try to maintain both. (See related #82.)
What's the thinking on where proper Aspire samples ought to live, here or in the aspire repo itself? If here, should we move over the one from the aspire repo? It seems like it'd be an extra headache to try to maintain both. (See related https://github.com/dotnet/aspire-samples/issues/82.)
Proper samples live in this repo. We just renamed the directory in the other repo to "playground" to better describe its purpose (i.e. to make it easier for folks working on Aspire itself to have apps that use features in the repo).
I'd update the sample in this repo to include showing relevant features.