Skip to content

Commit a8aa2c1

Browse files
authored
Docs Review (#6998)
* Remove duplicated snippet code * subscription caching * injection sample
1 parent b1dec85 commit a8aa2c1

File tree

7 files changed

+5
-34
lines changed

7 files changed

+5
-34
lines changed

Snippets/Core/Core_7/HandlerOrdering.cs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,6 @@ class HandlerOrdering
66
{
77
void Simple(EndpointConfiguration endpointConfiguration)
88
{
9-
#region HandlerOrderingWithCode
10-
11-
endpointConfiguration.ExecuteTheseHandlersFirst(
12-
typeof(HandlerB),
13-
typeof(HandlerA),
14-
typeof(HandlerC));
15-
16-
#endregion
179
}
1810

1911
void SpecifyingFirst(EndpointConfiguration endpointConfiguration)

Snippets/Core/Core_8/HandlerOrdering.cs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,6 @@ class HandlerOrdering
66
{
77
void Simple(EndpointConfiguration endpointConfiguration)
88
{
9-
#region HandlerOrderingWithCode
10-
11-
endpointConfiguration.ExecuteTheseHandlersFirst(
12-
typeof(HandlerB),
13-
typeof(HandlerA),
14-
typeof(HandlerC));
15-
16-
#endregion
179
}
1810

1911
void SpecifyingFirst(EndpointConfiguration endpointConfiguration)

Snippets/Core/Core_9/HandlerOrdering.cs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,6 @@ class HandlerOrdering
66
{
77
void Simple(EndpointConfiguration endpointConfiguration)
88
{
9-
#region HandlerOrderingWithCode
10-
11-
endpointConfiguration.ExecuteTheseHandlersFirst(
12-
typeof(HandlerB),
13-
typeof(HandlerA),
14-
typeof(HandlerC));
15-
16-
#endregion
179
}
1810

1911
void SpecifyingFirst(EndpointConfiguration endpointConfiguration)

nservicebus/handlers/handler-ordering.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Handler Ordering
33
summary: Controlling the order in which handlers are executed
4-
reviewed: 2022-11-08
4+
reviewed: 2025-02-17
55
component: Core
66
redirects:
77
- nservicebus/how-do-i-specify-the-order-in-which-handlers-are-invoked
@@ -26,17 +26,12 @@ If it is not possible to migrate this kind of functionality out of message handl
2626

2727
The remaining handlers (i.e. ones not specified in the ordering) are executed in a non-deterministic order.
2828

29-
3029
### With the configuration API
3130

32-
snippet: HandlerOrderingWithCode
33-
34-
3531
#### Specifying one handler to run first
3632

3733
snippet: HandlerOrderingWithFirst
3834

39-
4035
#### Specifying multiple handlers to run in order
4136

4237
snippet: HandlerOrderingWithMultiple

persistence/sql/subscriptions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Subscription Persister
33
component: SqlPersistence
4-
reviewed: 2022-11-09
4+
reviewed: 2025-02-17
55
redirects:
66
- nservicebus/sql-persistence/subscriptions
77
versions: '[2,)'
@@ -14,7 +14,7 @@ The storage of subscription information is required for [unicast transports](/tr
1414

1515
Subscription information can be cached for a given period of time so that it does not have to be loaded every single time an event is being published. The longer the cache period is, the higher the chance that new subscribers miss some events. It happens when a subscription message arrives after the subscription information has been loaded into memory.
1616

17-
Because of that, there is no good default value for the subscription caching period. It has to be specified by the user. In systems where subscriptions are static, the caching period can be relatively long. To configure it, use following API:
17+
Because of that, there is no good default value for the subscription caching period. It has to be specified by the user. In systems where subscriptions are static, the caching period can be relatively long. To configure it, use the following API:
1818

1919
snippet: subscriptions_CacheFor
2020

persistence/sql/subscriptions_connection_sqlpersistence_[4,).partial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
The subscription persister can be configured to use a dedicated connection builder. For example, it may be used for creating subscription tables in a separate database.
44

5-
snippet: SqlPersistenceSubscriptionConnection
5+
snippet: SqlPersistenceSubscriptionConnection

samples/dependency-injection/extensions-dependency-injection/sample.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: NServiceBus.Extensions.DependencyInjection Usage
33
summary: A sample that uses Microsoft's built-in dependency injection container
44
component: Extensions.DependencyInjection
5-
reviewed: 2022-10-31
5+
reviewed: 2025-02-18
66
related:
77
- nservicebus/dependency-injection
88
- nservicebus/dependency-injection/extensions-dependencyinjection

0 commit comments

Comments
 (0)