We use cookies and similar technologies to ensure you get the best experience on our websites. By actively using the website you're consenting to use these cookies.
OK
Particular home
Blog
Distributed systems design fundamentals
training
Toggle navigation
Support
Contact Us
Getting Started
Quick Start Tutorial
NServiceBus Step-by-step
NServiceBus Sagas
NServiceBus monitoring demo
Overview
High-level content
Architecture
Introduction
Concepts
Azure
AWS
Service Platform
About
Platform installation
Platform Sample installation
Connecting endpoints
Connection schema
Contributing
Release notifications
NServiceBus
General
Support Policy
Upgrade Guides
Messaging
Hosting
Handlers and sagas
Testing
Recoverability
Pipeline
Serialization
Dependency Injection
Logging
Security
Security Advisories
Operations
Messaging Bridge
Compliance
Tools
Troubleshooting
Transports
General
Upgrade Guides
Learning
Azure Service Bus
Azure Storage Queues
SQL Server
PostgreSQL
MSMQ
RabbitMQ
Amazon SQS
Persistence
General
Upgrade Guides
Learning
Non-Durable
SQL
Cosmos DB
Azure Table
RavenDB
Service Fabric
NHibernate
MSMQ Subscription
MongoDB
DynamoDB
ServiceInsight
Introduction
Usage
ServicePulse
Introduction
Configuration
ServiceControl
Introduction
Upgrade Guides
Planning
Error instances
Audit instances
Monitoring instances
Data Management
Integration
Migrations
Troubleshooting
Monitoring
Intro to Monitoring
Heartbeats
Custom checks
Performance Metrics
Upgrade guides
Shape the future
Introduction
NServiceBus and CloudEvents
NServiceBus and .NET Aspire
NServiceBus and Redis
Samples
General
AWS
Azure
Azure Functions
Azure Service Bus transport
Bridge samples
Cosmos DB
Data Bus
Dependency Injection
Encryption samples
Hosting
Logging and Metrics
MongoDB
MSMQ
Multi-tenant
NHibernate Persistence
OpenTelemetry
Outbox
Pipeline
ServicePlatform Connection
PostgreSQL Transport
Publish/Subscribe
RabbitMQ Transport
RavenDB Persistence
Routing
Saga
Scale-out
Scheduling
Serializer
ServiceControl
ServiceInsight
Showcase
SQL Persistence
SQL Server Transport
Transactional Session
Web
All Topics
Dependency Injection Samples
Edit
Edit article
Edit online with VSCode
Edit article locally
Feedback
Article navigation
Samples
ASP.NET Core Dependency Injection Integration
Autofac Dependency Injection Usage
Externally Managed Mode
A sample that uses NServiceBus's externally managed mode feature to configure a DI container.
Ninject Dependency Injection Usage
NServiceBus.Extensions.DependencyInjection Usage
A sample that uses Microsoft's built-in dependency injection container.
Spring Dependency Injection Usage
StructureMap Dependency Injection Usage
Unity Dependency Injection Usage
Windsor Dependency Injection Usage
Related Articles
Dependency Injection
NServiceBus automatically registers components, handlers, and sagas.
Edit
Edit article
Edit online with VSCode
Edit article locally
Feedback
In this article