DKNet provides opinionated helpers for .NET Aspire so you can model service dependencies declaratively inside the AppHost. The packages extend Aspire's distributed application builder with additional resources and conventions that align with DKNet's messaging stack.
| Package | Description |
|---|---|
Aspire.Hosting.ServiceBus |
Azure Service Bus resource helpers and orchestration utilities |
Aspire integrations sit at the infrastructure orchestration tier, complementing the Onion Architecture by providing clean boundaries for how services are provisioned and discovered. They help you:
- Declare messaging infrastructure once and reuse it across multiple projects
- Inject connection strings and credentials into worker and API projects automatically
- Align SlimMessageBus or other messaging components with Azure Service Bus namespaces
- Support local developer experiences via Aspire's orchestrator while preparing for production deployments
- Install
.NET Aspiretooling and create an AppHost project. - Reference the DKNet Aspire packages from the AppHost.
- Use the provided extension methods to register Service Bus resources alongside your workloads.
- Bind connection details inside downstream projects via Aspire's configuration plumbing.
Refer to the individual package documentation for concrete code samples and configuration options.