You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: samples/azure/webjob-host/sample.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
1
---
2
2
title: Self-Hosting in Azure WebJobs
3
-
summary: Uses NServiceBus the self-hosting capability to host an endpoint in an Azure WebJob.
3
+
summary: Use NServiceBus with self-hosting to host an endpoint in an Azure WebJob.
4
4
component: Core
5
-
reviewed: 2022-11-08
5
+
reviewed: 2025-03-06
6
6
isLearningPath: true
7
7
related:
8
8
- samples/dependency-injection/aspnetcore
@@ -26,17 +26,17 @@ This sample contains one project:
26
26
27
27
### Receiver
28
28
29
-
The receiver uses the self-hosting capability to start an end endpoint inside a continuously running WebJob.
29
+
The receiver uses the self-hosting capability to start an endpoint inside a continuously running WebJob.
30
30
31
31
The `UseNServiceBus` method of [`NServiceBus.Extensions.Hosting`](/nservicebus/hosting/extensions-hosting.md) is used to configure and start the endpoint:
32
32
33
33
snippet: WebJobHost_Start
34
34
35
35
> [!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).
36
+
> 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/#related-samples).
37
37
38
-
A critical error action must be defined to restart the host when a critical error is raised:
38
+
A [critical error](/nservicebus/hosting/critical-errors.md) action must be defined to restart the host when a critical error occurs:
39
39
40
40
snippet: WebJobHost_CriticalError
41
41
42
-
When the WebJob host stops, the endpoint endpoint is automatically stopped with the host. This is taken care off by the hosting extension.
42
+
When the WebJob host stops, the endpoint is automatically stopped with it by the hosting extension.
0 commit comments