Skip to content

Commit

Permalink
Merge pull request #67 from andreydobrikov/patch-2
Browse files Browse the repository at this point in the history
Update README.md - clarified punctuation
  • Loading branch information
neuecc committed Jan 13, 2022
2 parents e4e0390 + 2e10b12 commit bcb0218
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -477,11 +477,11 @@ var value = await subscriber.FirstAsync(cts.Token);

Filter
---
Filter system can hook before and after method invocation. It is implemented with the Middleware pattern, which allows you to write synchronous and asynchronous code with similar syntax. MessagePipe's filter kind are sync(`MessageHandlerFilter<T>`) and async(`AsyncMessageHandlerFilter<T>`) and request(`RequestHandlerFilter<TReq, TRes>`) and async request (`AsyncRequestHandlerFilter<TReq, TRes>`), you can inherit theres to implement filter.
Filter system can hook before and after method invocation. It is implemented with the Middleware pattern, which allows you to write synchronous and asynchronous code with similar syntax. MessagePipe provides different filter types - sync (`MessageHandlerFilter<T>`), async (`AsyncMessageHandlerFilter<T>`), request (`RequestHandlerFilter<TReq, TRes>`) and async request (`AsyncRequestHandlerFilter<TReq, TRes>`). To implement other concerete filters the above filter types can be extended.

Filters can be specified in three places. Global(by `MessagePipeOptions.AddGlobalFilter`), per handler type, and per subscribe. The filters are sorted according to the Order specified in each of them, and are generated when subscribing.
Filters can be specified in three places - global(by `MessagePipeOptions.AddGlobalFilter`), per handler type, and per subscription. These filters are sorted according to the Order specified in each of them, and are generated when subscribing.

Since it is generated on a per-subscribe basis, the filter can have a state.
Since the filter is generated on a per subscription basis, the filter can have a state.

```csharp
public class ChangedValueFilter<T> : MessageHandlerFilter<T>
Expand Down

0 comments on commit bcb0218

Please sign in to comment.