Skip to content

shared state that's accessible for the webserver? #115

Answered by jchristn
Zerowalker asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, there are a couple of immediate options.

  1. add a pre-request handler that will attach your state to the HttpContext.Metadata (object) property.

  2. use a static class that is public/internal that the assembly/routes can reach.

Cheers, Joel

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Zerowalker
Comment options

Answer selected by Zerowalker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants