Skip to content

Commit 7cb8534

Browse files
authored
Add minimal docs for GlobalPre/PostProcessor state (#21)
1 parent 2003472 commit 7cb8534

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: src/routes/docs/[...11]pre-post-processors.md

+2
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,8 @@ public class DurationLogger : PostProcessor<MyRequest, MyStateBag, object>
213213
}
214214
}
215215
```
216+
For global processors, you may use the `GlobalPreProcessor<TState>` and `GlobalPostProcessor<TState>` abstract classes instead.
217+
216218
The endpoint is able to access the same shared/common state by calling the **ProcessorState&lt;MyStateBag&gt;()** method like so:
217219
```cs
218220
public class MyEndpoint : Endpoint<MyRequest>

0 commit comments

Comments
 (0)