<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/63-avalonia-ui-real-world-kestrel-to-avalonia-comms--isidl20nn" -->

---
title: 63. Avalonia UI Real World (Kestrel to Avalonia Comms)
description: A hands-on coding walkthrough builds communication between a Kestrel web server and an Avalonia desktop UI running in the same .NET process. The author wires...
canonical: https://daily.dev/posts/63-avalonia-ui-real-world-kestrel-to-avalonia-comms--isidl20nn
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: 63. Avalonia UI Real World (Kestrel to Avalonia Comms) | daily.dev
og:description: A hands-on coding walkthrough builds communication between a Kestrel web server and an Avalonia desktop UI running in the same .NET process. The author wires...
og:url: https://daily.dev/posts/63-avalonia-ui-real-world-kestrel-to-avalonia-comms--isidl20nn
og:image: https://api.daily.dev/og/posts/iSIDL20nN.png
og:image:alt: 63. Avalonia UI Real World (Kestrel to Avalonia Comms)
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# 63. Avalonia UI Real World (Kestrel to Avalonia Comms)

**[AngelSix](https://daily.dev/sources/angelsix)** · 27 min read · 0 upvotes · 0 comments

## Summary

A hands-on coding walkthrough builds communication between a Kestrel web server and an Avalonia desktop UI running in the same .NET process. The author wires up Microsoft.Extensions.DependencyInjection by sharing the WebApplication's service collection, exposes the view model to Kestrel endpoints via [FromServices], and tests two-way data updates between the web endpoint and the UI thread. The session then introduces a SolidWorks batch process host service that reads files from a folder to simulate real SolidWorks file access, binds the results to an Avalonia ListBox, and ends by planning to extract shared API classes into a core project so both apps can expose REST endpoints over the dependency-injected services.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.youtube.com/watch?v=-LQYDp7HuJE>

## Similar posts on daily.dev

- [Welcome to the New Era of App Development: Introducing Avalonia v11](https://daily.dev/posts/welcome-to-the-new-era-of-app-development-introducing-avalonia-v11-jkkwhnsya) · Avalonia UI Blog · 0 upvotes · 0 comments
- [Thoughts on Avalonia](https://daily.dev/posts/thoughts-on-avalonia-eszxfx9o8) · Avalonia UI Blog · 0 upvotes · 0 comments
- [Accelerate Showcase: Built with AI, Designed with Stitch](https://daily.dev/posts/accelerate-showcase-built-with-ai-designed-with-stitch-bmzxkgvaw) · Avalonia UI Blog · 11 upvotes · 0 comments

---

Tags: [#c#](https://daily.dev/tags/c#), [#aspnet](https://daily.dev/tags/aspnet), [#dependency-injection](https://daily.dev/tags/dependency-injection), [#avalonia](https://daily.dev/tags/avalonia)

[View this post on daily.dev](https://daily.dev/posts/63-avalonia-ui-real-world-kestrel-to-avalonia-comms--isidl20nn)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"63. Avalonia UI Real World (Kestrel to Avalonia Comms)","url":"https://daily.dev/posts/63-avalonia-ui-real-world-kestrel-to-avalonia-comms--isidl20nn","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/63-avalonia-ui-real-world-kestrel-to-avalonia-comms--isidl20nn"},"datePublished":"2026-10-04T13:04:27.458Z","dateModified":"2026-10-04T13:05:41.899Z","description":"A hands-on coding walkthrough builds communication between a Kestrel web server and an Avalonia desktop UI running in the same .NET process. The author wires...","image":"https://i.ytimg.com/vi/-LQYDp7HuJE/sddefault.jpg","thumbnailUrl":"https://i.ytimg.com/vi/-LQYDp7HuJE/sddefault.jpg","isAccessibleForFree":true,"articleSection":"AngelSix","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"AngelSix","logo":"https://media.daily.dev/image/upload/s--h1ikmN_u--/f_auto,q_auto/v1791119063/logos/angelsix?_a=BAMAMicg0","url":"https://daily.dev/sources/angelsix"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/63-avalonia-ui-real-world-kestrel-to-avalonia-comms--isidl20nn","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"c#,aspnet,dependency-injection,avalonia","timeRequired":"PT27M","video":{"@type":"VideoObject","name":"63. Avalonia UI Real World (Kestrel to Avalonia Comms)","description":"A hands-on coding walkthrough builds communication between a Kestrel web server and an Avalonia desktop UI running in the same .NET process. The author wires...","thumbnailUrl":"https://i.ytimg.com/vi/-LQYDp7HuJE/sddefault.jpg","uploadDate":"2026-10-04T13:04:27.458Z","duration":"PT27M","url":"https://api.daily.dev/r/iSIDL20nN","embedUrl":"https://www.youtube.com/embed/-LQYDp7HuJE"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"AngelSix","item":"https://daily.dev/sources/angelsix"},{"@type":"ListItem","position":3,"name":"63. Avalonia UI Real World (Kestrel to Avalonia Comms)"}]}
```

