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
  • Наука та технологія

КОМЕНТАРІ • 35

  • @arthurnamu5770
    @arthurnamu5770 4 роки тому +1

    When you combine the video and his post.. it all makes sense.
    Great vid..

  • @cjp240573
    @cjp240573 5 років тому +1

    Thank you very much, this all I needed a simple tutorial of getting an API working unlike other tutorials.

  • @vchirilov
    @vchirilov 2 роки тому

    Man you're awesome! In just a couple of minutes explained a LOOOOOOOT.

  • @SkylineGTRR
    @SkylineGTRR 7 років тому +1

    Awesome this video just saved my ass. I needed this exactly for an engineering project at my uni.

  • @chrisreddy3926
    @chrisreddy3926 4 роки тому

    Thanks. This is an excellent tutorial to get up and running real quick.

  • @AmiraMahmoud7
    @AmiraMahmoud7 6 років тому

    great video =) but i have a question. I can't use HttpContext.Application so is there an equivalent to it in OWIN.

  • @koviroli
    @koviroli Рік тому

    Your videos are pure gold. Wonder why I haven't find your videos earlier.

    • @CodeOpinion
      @CodeOpinion  Рік тому

      I'm clearly not playing the UA-cam algorithm game correctly! Glad you found it!

  • @TheGothicSecret
    @TheGothicSecret 6 років тому

    good job! thank you. and for your website also=) interesting to read.

  • @sandeepa3636
    @sandeepa3636 7 років тому

    great video. it is helpful

  • @irancho2
    @irancho2 6 років тому

    How can I get configure structuremap with this sample?

  • @carlamckenzie2669
    @carlamckenzie2669 4 роки тому +1

    Can you show how to deploy it and test it from an external ip?

  • @koviroli
    @koviroli Рік тому

    Question: How Owin locates the ApiController classes? Looks through the assemblies of the current runtime?

  • @arturoordonez-hernandez1534
    @arturoordonez-hernandez1534 4 роки тому

    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.

  • @athanasmb
    @athanasmb Місяць тому

    thanks ... Great job...

  • @Deekudla
    @Deekudla 6 років тому

    Great Video. I am planning to integrate MQTTnet broker with this. Is it right design?

  • @amreenhundekari6495
    @amreenhundekari6495 4 роки тому

    Hey Will you help me to do self-hosting using "http.sys" . How to do this?

  • @akashpaul6891
    @akashpaul6891 6 років тому +1

    Could you apply this concept theoretically speaking to MVC projects?

  • @solemabdusalam6961
    @solemabdusalam6961 4 роки тому

    quick question: how do you deploy this locally over company LAN?
    Great content btw...

    • @CodeOpinion
      @CodeOpinion  4 роки тому

      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

  • @sridevibathula64
    @sridevibathula64 2 роки тому

    Nice 👍

  • @jg1007
    @jg1007 7 років тому

    owin self host package fails for .net core. Is there a .net core implementation?

    • @CodeOpinion
      @CodeOpinion  6 років тому

      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

  • @mitikox
    @mitikox 7 років тому

    Can you self-host an html file and how?

    • @CodeOpinion
      @CodeOpinion  7 років тому

      You can! I've got a blog post that outlines how using Owin & Katana. codeopinion.com/asp-net-self-host-static-file-server/

  • @hanimv
    @hanimv 7 років тому

    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?

    • @CodeOpinion
      @CodeOpinion  7 років тому

      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.

  • @deepakdutta2879
    @deepakdutta2879 3 місяці тому

    This one does not work in .Net 8. How do I host a .net 8 in a console like you are showing.

  • @chihabahmed5207
    @chihabahmed5207 7 років тому

    what does self-host mean and can use these principle to build andriod app.

    • @CodeOpinion
      @CodeOpinion  7 років тому +3

      It means to host the web server in your application rather than using something external as the webserver like IIS.

    • @chihabahmed5207
      @chihabahmed5207 7 років тому

      Okay

  • @sridevibathula64
    @sridevibathula64 2 роки тому

    Clarified a lot in 5 mins .