Home > Net >  WEBAPI (HttpContextBase) used in the Request. The Properties [" MS_HttpContext "] to make
WEBAPI (HttpContextBase) used in the Request. The Properties [" MS_HttpContext "] to make

Time:11-11


Does not exist the MS_HttpContext, why are the examples of others in MS_HttpContext, please answer the great god

CodePudding user response:

HttpContext. Current. The Request

CodePudding user response:

And you should not take the properties into httpcontextbase,
They will not have relations of objects,

CodePudding user response:

Well, since you stick figure that actually you can debug program

Did you see the owin? We also see from the figure the Form1 that you did use owin self host, so, you should see owin self host things

I do know that Microsoft during that time some hesitation, design, and some mess, because I also find out how owin self take httpcontext under the condition of the host data, but time is long, I'm too lazy to write this kind of thing, you can only himself in the check information with "owin self host", still have to see you use version (at the time Microsoft too chaos, you use the version is different, things are not the same as)

CodePudding user response:

 
Var id=(the req. Prop [0] as OwinContext). Request. Query. Get (" signin ");
  •  Tags:  
  • C#
  • Related