app.Use vs app.Run in ASP.NET Core middleware

Earlier I posted quick summary of what’s changed in ASP.NET Core and one of the biggest change is Introduction of middleware. If you are coming from ASP.NET background then you should be aware about HTTPHandlers and HTTPModules. Middleware are replacement of these things. It’s a new and cleaner approach to play with HTTP pipeline. Read my post How ASP.NET Core 1.0 Middleware is different from HttpModule.

Along with built-in middleware, there are 2 options to define inline middleware using app.Use and app.Run extension methods. And if you are currently working and playing with ASP.NET Core 1.0 then you may find examples of app.Use and app.Run in configure() method of Startup.cs class. Both of them are used for same purpose but they are different. How?
(more…)

Read More

Difference between Angular 1x and Angular 2

Difference between Angular 1.x and Angular 2

Angular 2 is still in beta (at the time of writing this post), but it has already created a buzz in community. Angular 2 will be a huge learning curve for developers. It is written entirely in Typescript and meets the ES6 specification. And it’s not an update for Angular 1.x. As it’s rewritten and includes breaking changes. So the best way to learn is to compare with Angular 1.x and find out what’s new in Angular 2. In this post, find out difference between Angular 1.x and Angular 2.
(more…)

Read More