Skip to content

Commit 73cf2f2

Browse files
authored
Legacy docs review "Controlling What Is Subscribed"
1 parent 7d212e1 commit 73cf2f2

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

nservicebus/messaging/publish-subscribe/controlling-what-is-subscribed.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,17 @@
22
title: Controlling What Is Subscribed
33
summary: When applying the publish-subscribe pattern, there are several ways to control what messages are subscribed to
44
component: Core
5-
reviewed: 2023-05-14
5+
reviewed: 2025-05-09
66
---
77

8-
98
## Automatic subscriptions
109

1110
The default mode for managing subscriptions is *auto-subscribe*. Every time a subscriber endpoint starts, it determines which events it needs to subscribe to and automatically subscribes to them. For more information on how publish and subscribe works, refer to [Publish-Subscribe](/nservicebus/messaging/publish-subscribe).
1211

13-
Messages matching both of the following criteria will be auto-subscribed at startup:
12+
Message types matching both of the following criteria will be auto-subscribed at startup:
1413

15-
1. Defined as an event either using `IEvent` or by the `.DefiningEventsAs` convention.
16-
1. At least one [message handler and/or saga](/nservicebus/handlers/) exists for the given event.
14+
1. Defined as an event either using `IEvent` or by the `.DefiningEventsAs` convention
15+
1. At least one [message handler and/or saga](/nservicebus/handlers/) exists for the given event
1716

1817
> [!NOTE]
1918
> If the selected transport [does not support publish-subscribe natively](/transports/types.md#unicast-only-transports), the publisher for that message must be specified via the [routing](/nservicebus/messaging/routing.md) API.
@@ -38,9 +37,9 @@ snippet: DoNotAutoSubscribeSagas
3837
In NServiceBus version 6 and above, it is possible to subscribe to messages not defined as events by [manually subscribing](/nservicebus/messaging/publish-subscribe/controlling-what-is-subscribed.md#manually-subscribing-to-a-message) to the message type.
3938

4039

41-
### When a subscriber stops or uninstalls
40+
## When a subscriber stops or uninstalls
4241

43-
A subscriber will not unsubscribe when it stops; it will remain registered at the publisher to receive events. The publisher still sends events to the queue of the stopped subscriber. When the subscriber is started, it will consume the messages from its queue. The subscriber will never lose an event.
42+
A subscriber will not auto unsubscribe when it stops; it will remain registered at the publisher to receive events. The publisher still sends events to the queue of the stopped subscriber. When the subscriber is started, it will consume the messages from its queue. The subscriber will never lose an event.
4443

4544

4645
## Disabling auto-subscription

0 commit comments

Comments
 (0)