Skip to content

Instantly share code, notes, and snippets.

@bvanderveen
Created October 30, 2011 19:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bvanderveen/1326305 to your computer and use it in GitHub Desktop.
Save bvanderveen/1326305 to your computer and use it in GitHub Desktop.
OWIN request BodyDelegate in Environment Dictionary vs. passed to App Delegate
// body-in-env
void AppDelegate(IDictionary<string, object> env, Action<string, IDictionary<string, string>, BodyDelegate> result, Action<Error> error) {
var requestBody = (BodyDelegate)env["owin.RequestBody"];
...
}
// body-as-arg
void AppDelegate(IDictionary<string, object> env, BodyDelegate requestBody, Action<string, IDictionary<string, string>, BodyDelegate> result, Action<Error> error) {
// (requestBody given as an argument)
// ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment