Skip to content

Commit 840f02b

Browse files
authored
Update README.md
1 parent 68e26ae commit 840f02b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ class PingNotificationHandler : NotificationHandler<PingNotification> {
3434
}
3535

3636
class MeasurePipelineBehaviour : PipelineBehaviour {
37+
38+
override val order: Int = 0
39+
3740
override suspend fun <TRequest, TResponse> handle(
3841
request: TRequest,
3942
next: RequestHandlerDelegate<TRequest, TResponse>
@@ -47,7 +50,7 @@ class MeasurePipelineBehaviour : PipelineBehaviour {
4750
}
4851

4952
val mediator = // create mediator instance in-memory or with dependency injection, take a look at the documentation
50-
mediator.send(PingCommand()) // 1..1
53+
mediator.send(PingCommand()) // 1..1
5154
mediator.send(PingQuery()) // 1..1
5255
mediator.send(PingNotification()) // 0..N
5356
```

0 commit comments

Comments
 (0)