How to Self Host ASP.NET Web API
Вставка
- Опубліковано 2 жов 2016
- A simple guide on how to self host ASP.NET Web API appliation without using IIS and leveraging OWIN and Katana.
codeopinion.com/self-host-asp-...
github.com/dcomartin/AspNetSe...
🔔 Subscribe: / @codeopinion
💥 Join this channel to get access to source code, demos, and slides!
/ @codeopinion
📝 Blog: codeopinion.com
📚 Book Recommendations
Domain-Driven Design
amzn.to/2QwG8sb
Patterns of Enterprise Application Architecture
amzn.to/3d8kMJj
Refactoring: Improving the Design of Existing Code
amzn.to/2NVdP5Q
Monolith to Microservices: Evolutionary Patterns to Transform Your Monolith
amzn.to/3srUuZ6
RESTful Web Clients: Enabling Reuse Through Hypermedia
amzn.to/3d8Q96B
CodeOpinon: codeopinion.com
Twitter: / codeopinion - Наука та технологія
When you combine the video and his post.. it all makes sense.
Great vid..
Thank you very much, this all I needed a simple tutorial of getting an API working unlike other tutorials.
Man you're awesome! In just a couple of minutes explained a LOOOOOOOT.
Awesome this video just saved my ass. I needed this exactly for an engineering project at my uni.
Thanks. This is an excellent tutorial to get up and running real quick.
great video =) but i have a question. I can't use HttpContext.Application so is there an equivalent to it in OWIN.
Your videos are pure gold. Wonder why I haven't find your videos earlier.
I'm clearly not playing the UA-cam algorithm game correctly! Glad you found it!
good job! thank you. and for your website also=) interesting to read.
great video. it is helpful
How can I get configure structuremap with this sample?
Can you show how to deploy it and test it from an external ip?
Question: How Owin locates the ApiController classes? Looks through the assemblies of the current runtime?
In case everything looks ok but it's not working for anyone, make sure your controller class is public. I couldn't figure out what was wrong but as soon as I made DemoController a public class, Insomnia's test call (an alternative client to Postman but very similar) worked.
thanks ... Great job...
Great Video. I am planning to integrate MQTTnet broker with this. Is it right design?
Hey Will you help me to do self-hosting using "http.sys" . How to do this?
Could you apply this concept theoretically speaking to MVC projects?
Did you ever find an answer for this?
quick question: how do you deploy this locally over company LAN?
Great content btw...
Depends what you mean by "deploy". If you really mean host, you might want to check out this video regarding running it as a windows service. ua-cam.com/video/FUa8RzWpJI0/v-deo.html
Nice 👍
owin self host package fails for .net core. Is there a .net core implementation?
It would need to target .NET Standard, which I'm not sure it does or ever will. Really the Owin/Katana was really replaced by ASP.NET Core. If you're running on .NET Core, I'd just use the webhostbuilder. Take a look at the docs here: docs.microsoft.com/en-us/aspnet/core/fundamentals/hosting?tabs=aspnetcore2x
Can you self-host an html file and how?
You can! I've got a blog post that outlines how using Owin & Katana. codeopinion.com/asp-net-self-host-static-file-server/
What is the use of self hosting in real world? They are not accessible from outside right? I mean, they work only with local host?
You can bind to any IP address on the host, including a public IP. Real World would you would likely be sitting behind a reverse proxy.
This one does not work in .Net 8. How do I host a .net 8 in a console like you are showing.
what does self-host mean and can use these principle to build andriod app.
It means to host the web server in your application rather than using something external as the webserver like IIS.
Okay
Clarified a lot in 5 mins .