Skip to content

Commit 396e3b1

Browse files
authored
Merge pull request #7032 from Particular/self-hosting-review
Self-hosting in Azure Webjobs Review
2 parents d3b051f + a80e4f6 commit 396e3b1

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed
Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
---
22
title: Self-Hosting in Azure WebJobs
3-
summary: Uses NServiceBus the self-hosting capability to host an endpoint in an Azure WebJob.
3+
summary: Host an NServiceBus endpoint in Azure WebJobs.
44
component: Core
5-
reviewed: 2022-11-08
5+
reviewed: 2025-03-06
66
isLearningPath: true
7-
related:
8-
- samples/dependency-injection/aspnetcore
97
redirects:
108
- samples/azure/self-host
119
- samples/azure/shared-host
1210
---
1311

14-
This sample is compatible with Azure WebJobs SDK 3.0.
12+
This is an example of how an NServiceBus endpoint can be hosted using Azure WebJobs. This sample is compatible with Azure WebJobs SDK 3.0.
1513

1614
## Running in development mode
1715

@@ -26,17 +24,17 @@ This sample contains one project:
2624

2725
### Receiver
2826

29-
The receiver uses the self-hosting capability to start an end endpoint inside a continuously running WebJob.
27+
The receiver uses the self-hosting capability to start an endpoint inside a WebJob.
3028

3129
The `UseNServiceBus` method of [`NServiceBus.Extensions.Hosting`](/nservicebus/hosting/extensions-hosting.md) is used to configure and start the endpoint:
3230

3331
snippet: WebJobHost_Start
3432

3533
> [!NOTE]
36-
> If dependencies need to be shared between the service collection and NServiceBus infrastructure, such as message handlers, see the [ASP.NET Core sample](/samples/dependency-injection/#related-samples).
34+
> If dependencies need to be shared between the service collection and NServiceBus infrastructure (e.g., message handlers), refer to the [ASP.NET Core sample](/samples/dependency-injection/aspnetcore).
3735
38-
A critical error action must be defined to restart the host when a critical error is raised:
36+
A [critical error](/nservicebus/hosting/critical-errors.md) action must be defined to restart the host when a critical error occurs:
3937

4038
snippet: WebJobHost_CriticalError
4139

42-
When the WebJob host stops, the endpoint endpoint is automatically stopped with the host. This is taken care off by the hosting extension.
40+
When the WebJob host stops, the endpoint is automatically stopped with it by the hosting extension.

0 commit comments

Comments
 (0)