Rival Abdrakhmanov
banner
rafaelldi.bsky.social
Rival Abdrakhmanov
@rafaelldi.bsky.social
And here is #aspire dashboard with the ability to collect a memory dump from the running project. Works perfectly 🎉
September 29, 2025 at 6:16 PM
A nice small detail: `sidecar.WithParentRelationship(project);`.
September 29, 2025 at 6:12 PM
And probably the last thing is to add an http endpoint and an http command to collect a memory dump.
September 29, 2025 at 6:09 PM
To connect to the port from the "sidecar" we can create a `BackgroundService` and use the `DiagnosticsClientConnector` class. This background service will then initialize a `DiagnosticsClientService` singleton service with the connected `DiagnosticsClient`.
September 29, 2025 at 5:57 PM
To use it, we need to set the `DOTNET_DiagnosticPorts` environment variable to the base project. And then connect to the same diagnostic port from the "sidecar" project.
September 29, 2025 at 5:46 PM
The "sidecar" project will have a `DiagnosticsClient` library installed, but it have to connect to the base project. The better way to do that is probably the diagnostic port learn.microsoft.com/en-in/dotnet...
September 29, 2025 at 5:41 PM
Something like this:
September 29, 2025 at 5:32 PM
Or maybe it's just easier to create a separate "sidecar" project and run them both.
September 29, 2025 at 5:26 PM
To add a custom endpoint to a project in runtime, we probably need to use `DOTNET_STARTUP_HOOKS` github.com/dotnet/runti... and `IHostingStartup` learn.microsoft.com/en-us/aspnet...
September 29, 2025 at 5:13 PM
We will anyway modify the original project, so we will need a custom extension point `AddProjectWithDiagnostics`. So let's start with that.
September 29, 2025 at 5:08 PM
So, we need to add an additional endpoint to the project that will implement a command to create a memory dump.
September 29, 2025 at 4:59 PM
After a quick look through the documentation, I didn't fully understand how to implement my own command, but it seems I can implement a custom http command instead. That should be much easier.

learn.microsoft.com/en-us/dotnet...
September 29, 2025 at 4:57 PM
Another thing is that I want to collect diagnostics data from the dashboard. So, I probably need to implement a custom resource command - learn.microsoft.com/en-us/dotnet....
September 29, 2025 at 4:41 PM
To collect diagnostics information, I could use the diagnostics client library (learn.microsoft.com/en-us/dotnet...). But I need to somehow attach the client to a running project.
September 29, 2025 at 4:39 PM
And if you want to follow and support Argo and Dora, here are their handles: @mixedmartialarx.bsky.social and @doraspacexplora.bsky.social
September 28, 2025 at 7:03 PM
The episode is based on interviews from @the41stprecinct.bsky.social. He has a really interesting podcast about Disco Elysium. Highly recommend it!
September 28, 2025 at 12:38 PM
Season finale. The second episode about Disco Elysium. This time, I’m telling the same story — but from the perspective of someone who was actually there, watching it all unfold.

Ep. 11: open.spotify.com/episode/4Ur8...
September 28, 2025 at 12:12 PM
From the humble beginnings of ZA/UM, through years of creative struggle, to a surprise global success - and then to a tangled web of conflicts. In this episode, we dive into how Disco Elysium was made and the challenges its creators faced.

Ep. 10: open.spotify.com/episode/06Fu...
September 22, 2025 at 7:16 PM
Same:( only a wait list
September 11, 2025 at 12:59 PM