Home > Net > C # how to create the Http interface, access method is Get, do you have any sample?
C # how to create the Http interface, access method is Get, do you have any sample?
Time:11-26
C # how to create the Http interface, access method is Get, don't know how to write this
CodePudding user response:
How to write an Http interface, let the other people to call
CodePudding user response:
Have bosses give directions
CodePudding user response:
I am wrong, I didn't see clear title, many kinds of ways, set up a website, web service or webapi can be,
CodePudding user response:
Well, in section c #, I think you are by default console program, not asp.net application (if the asp.net, I think you don't ask, he is by nature)
So: If you are the core or 5: 1. Nuget Microsoft. AspNetCore. Owin 2. Microsoft. AspNetCore. Server. Kestrel
The rest, how ordinary asp.net you write how to write, the same to webhost. Builder, as well as startup. Cs, as the use of controls, mapcontrols, use routing
If you are a net4, situation about 1. Nuget lookup owin. Self. Host
This data I don't specifically, because at that time owin itself reference some confusion, data is chaotic, how do you say, how to use, so I can't say that is the most correct (when the reality is that owin and your reference other libraries depend on each other, and version is different, the data is different, we can't reply, at the time I sometimes Nancy this unofficial products, because somehow Nancy idea of structuralism, the author of data will be less confusion)