OAuth is a authorization protocol. OAuth allows the resources of users stored on a website such as a facebook to be accessed by third party website.So if you have some contacts added in facebook you can authorize a website which allows you to login using facebook id to access those contacts.This has an advantage of sharing the […]
Archives for August 2016
How action method is selected in WebAPI
WebAPI is a framework used for developing HTTP services. Like MVC application WebAPI also uses controller and action methods to handle the requests.Similar to MVC WebAPI also supports concepts such as: Controllers and action methods Routing Filters Model Binding But it differs from MVC Unlike MVC application WebAPI application can not return views Unlike MVC […]
Action,Func and Predicate in .NET
Delegate in .NET is a type which can refer to a method.So if we have a delegate type declared as delegate int tempDelegate(int a,int b); then the above delegate can point to a method which accepts two integer arguments and returns an integer type tempDelegate objDelegate=Add; int sum=objDelegate(1,2); public int Add(int a,int b) { return a+b; […]
HttpHandler and HttpModule in ASP.NET
When a request is received by the web server or IIS , the request is sent to the worker process.Worker process initializes ASP.NET runtime which handles the request.Request flows through a well defined pipeline to generate the response. Following are the main components of the HTTP Request pipeline HttpModules HttpHandler HttpModule is implemented as a […]
Global application class in ASP.NET
There are two life cycles in an asp.net application Request life cycle Specific to every request which is received by the asp.net framework.Each request has its own request life cycle events. Application life cycle Begins when the application is started and ends when the application is stopped.Different application life cycle events are raised as the application executes. […]