They are stronger than I expected. I guess this means I need to actually pay for an account instead of trying to just get away with abusing a ten day free trail, huh? Here are some dirty notes I've taken since Friday on OWIN:
- The AppFunc: Func<IDictionary<string, object>, Task>;
- A low level OWIN Component is called Middleware!
public async Task Invoke(IDictionary<string, object> environment)
{
await _nextComponent(environment);
} - Keys which MUST appear in the AppFunc Request Environment: owin.RequestBody, owin.RequestHeaders, owin.RequestMethod, owin.RequestPath, owin.RequestPathBase, owin.RequestProtocol, owin.RequestQueryString, owin.RequestScheme
- MUST appear in the Response Environment: owin.ResponseBody, owin.ResponseHeaders
- remember setting status codes!
- look at how he is processing requests!
- Nancy is for routing on top of OWIN.
- Both Nancy and Web API do not have dependency on System.Web or ASP.NET
- IIS Express "is essentally the core of IIS but I can run it from the command line"
- Microsoft.Owin.Host.SystemWeb ...makes an OWIN app IIS friendly
- change Console Application to Class Library
- change Output Path at "Build" to "bin"
- how was Startup found?
- Startup.cs in an MVC5 project!
- There is a by default a middleware component for authentication and there are more components for various types of authentication
- katanaproject.codeplex.com has the source! ...canned, existing middleware is here
No comments:
Post a Comment