NancyFx Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 10 พ.ย. 2024

ความคิดเห็น • 14

  • @JasonPerry
    @JasonPerry 11 ปีที่แล้ว

    Thanks for this. I've tried Nancy a couple of times in very simple ways and this clarified a few things for me.

  • @2Fast4Mellow
    @2Fast4Mellow 10 ปีที่แล้ว

    Just a few quick remarks. If an (routed) path exists the nancy application, the default http status code is already, 200 OK. So there is no need to set it twice.
    That the error handler in the bootstrapper. Instead of return a 'default' InternalServerError status, it's way better to keep returning the original exception. In more complicated nancy applications it's possible that the bootstrapper gets inherited multiple times and each inherited implementation can do it's own error handling. When nancy doesn't receive an exception back, it assumes the error is dealth with and the traversal of the bootstrapper three is stopped resulting in that any other error handlers will not be called. So, only handle you're own exceptions...
    Great work on this tutorial which gives a quick overview of how Nancy works. When I got an new dev on my team that has to work with Nancy I will them view this tutorial. We're a bit anal about the massive SOLID violations of the ASP.NET MVC / WebAPI (which is not an API, but more like an remote data backend!) so we write all our websites using Nancy..

    • @DanSwain
      @DanSwain 10 ปีที่แล้ว

      Thanks for the tips duly noted.

  • @RedGlobeMedia
    @RedGlobeMedia 11 ปีที่แล้ว +4

    Thanks for introducing me to Nancy.

  • @activeenginesensei
    @activeenginesensei 11 ปีที่แล้ว +1

    Very nice introduction. I hope you do more.

  • @ramzess7655
    @ramzess7655 9 ปีที่แล้ว +1

    Hi. How nency working with view engines like razor || webforms?

    • @DanSwain
      @DanSwain 9 ปีที่แล้ว

      Рамазан Алисханов you can use any of the view engines you listed it's quite modular. There's even a more primitive view engine which I've used on occassion

    • @ramzess7655
      @ramzess7655 9 ปีที่แล้ว

      Dan Swain
      Ok. Something like "return View()" ?

  • @ionicafardefrica
    @ionicafardefrica 5 ปีที่แล้ว +1

    you lost be half way through the bootstrapper config :)

  • @thecoolman2007
    @thecoolman2007 6 ปีที่แล้ว

    Awosome .. Hope you can show us stateless auth too :)

  • @pradeeprao822
    @pradeeprao822 9 ปีที่แล้ว

    Why is everything done in the constructor of the class?

    • @DanSwain
      @DanSwain 9 ปีที่แล้ว

      pradeep rao no real reason for everything to be in the constructor, just shows how concise nancy can be at the extreme. Would recommend pulling out bits into methods for anything sophisticated. Maybe even different modules.

  • @GauravAroraKumar
    @GauravAroraKumar 11 ปีที่แล้ว

    awesome!

  • @rodrigonvbh
    @rodrigonvbh 8 ปีที่แล้ว

    Very Nancy :)