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
editorial review of addition of SqlServer message store methods (#6833)
* editorial review of addition of SqlServer message store methods
* Update transports/msmq/delayed-delivery_content_msmqtransport_[2.0,).partial.md
Co-authored-by: Adam Ralph <[email protected]>
---------
Co-authored-by: Daniel Marbach <[email protected]>
Copy file name to clipboardExpand all lines: transports/msmq/delayed-delivery_content_msmqtransport_[2.0,).partial.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -73,46 +73,46 @@ The built-in SQL Server delayed message store takes a pessimistic lock on the de
73
73
> [!NOTE]
74
74
> The following samples are adapted from the `SqlServerDelayedMessageStore` class provided with the MSMQ transport, and are provided as a guide for adapting to whatever persistence technology is required.
75
75
76
-
When creating a custom message store, the class can either implement `IDelayedMessageStore`
76
+
When creating a custom message store, the class can either implement `IDelayedMessageStore`:
77
77
78
78
snippet: dms-without-infrastructure
79
79
80
-
or `IDelayedMessageStoreWithInfrastructure`
80
+
or `IDelayedMessageStoreWithInfrastructure`:
81
81
82
82
snippet: dms-with-infrastructure
83
83
84
-
The only difference between the two interfaces is the `SetupInfrastructure` method, which must be implemented in`IDelayedMessageStoreWithInfrastructure` to create the required storage tables if they don't exist yet. With `IDelayedMessageStore` the storage tables are expected to already exist.
84
+
The only difference between the two interfaces is the `SetupInfrastructure` method, which must be implemented for`IDelayedMessageStoreWithInfrastructure` to create the required storage tables if they don't yet exist. With `IDelayedMessageStore`, it is expected that the storage tables already exist:
85
85
86
86
snippet: dms-setup-infrastructure
87
87
88
-
In the above example, `TimeoutTableCreator` is responsible for executing the script against the database. For SQL Server, the script would be
88
+
In the above example, `TimeoutTableCreator` is responsible for executing the script against the database. For SQL Server, the script is:
89
89
90
90
snippet: dms-sql-create-table
91
91
92
-
With both interfaces, the `Initialize` method will be called with the name of the endpoint being initialized. The storage implementation should throw an exception if it can't support specified transaction mode, e.g. TransactionScope mode requires the storage to enlist in a distributed transaction managed by the DTC.
92
+
With both interfaces, the `Initialize` method is called with the name of the endpoint being initialized. The storage implementation should throw an exception if it doesn't support the specified transaction mode. For example, `TransactionScope` mode requires the storage to enlist in a distributed transaction managed by the DTC:
93
93
94
94
snippet: dms-initialise
95
95
96
96
snippet: dms-sql-crud
97
97
98
-
The remaining methods implement the logic required for the message store:
98
+
The remaining methods implement the logic required for the message store.
99
99
100
-
`Store`Stores a delayed message.
100
+
`Store`stores a delayed message:
101
101
102
102
snippet: dms-store
103
103
104
-
`Remove`Removes a due delayed message that has been dispatched to its destination from the store. It must return `true` if the removal succeeded or `false` if there was nothing to remove because the delayed message was already gone.
104
+
`Remove`removes a delayed message that has been dispatched to its destination. It must return `true` if the removal succeeded or `false` if there was nothing to remove because the delayed message was already removed:
105
105
106
106
snippet: dms-remove
107
107
108
-
`IncrementFailureCount`Increments the counter of failures for a given due delayed message. It must return `true` if the increment succeeded or `false` if the delayed message was already gone.
108
+
`IncrementFailureCount`increments the count of failures for a given delayed message. It must return `true` if the increment succeeded or `false` if the delayed message was already removed:
109
109
110
110
snippet: dms-increment-failure-count
111
111
112
-
`Next`Returns the date and time set for the next delayed message to become due or null if there are no delayed messages stored.
112
+
`Next`returns the date and time when the next delayed message is due or `null` if there are no delayed messages:
113
113
114
114
snippet: dms-next
115
115
116
-
`FetchNextDueTimeout`Retrieves the oldest due delayed message from the store at a specified date and time, or returns null if there are no due delayed messages.
116
+
`FetchNextDueTimeout`returns the next delayed message that will be due at a specified date and time or `null` if there will be no delayed messages at that date and time:
0 commit comments