Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
osoykan authored Oct 30, 2024
1 parent 68e26ae commit 840f02b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ class PingNotificationHandler : NotificationHandler<PingNotification> {
}

class MeasurePipelineBehaviour : PipelineBehaviour {

override val order: Int = 0

override suspend fun <TRequest, TResponse> handle(
request: TRequest,
next: RequestHandlerDelegate<TRequest, TResponse>
Expand All @@ -47,7 +50,7 @@ class MeasurePipelineBehaviour : PipelineBehaviour {
}

val mediator = // create mediator instance in-memory or with dependency injection, take a look at the documentation
mediator.send(PingCommand()) // 1..1
mediator.send(PingCommand()) // 1..1
mediator.send(PingQuery()) // 1..1
mediator.send(PingNotification()) // 0..N
```
Expand Down

0 comments on commit 840f02b

Please sign in to comment.