Introduction This tutorial demonstrates CORS support in ASP.NET Web API. We’ll start by creating two ASP.NET projects – one called “WebService”, which hosts a Web API controller, and the other called “WebClient”, which calls WebService. Because the two applications are hosted at different domains, an AJAX request from WebClient to WebService is a cross-origin request…
Category Archives: Technology
owin security in web api
In Visual Studio 2013, the Web API project template gives you three options for authentication: Individual accounts. The app uses a membership database. Organizational accounts. Users sign in with their Azure Active Directory, Office 365, or on-premise Active Directory credentials. Windows authentication. This option is intended for Intranet applications, and uses the Windows Authentication IIS…
Parameter Binding in ASP.NET Web API
When Web API calls a method on a controller, it must set values for the parameters, a process called binding. This article describes how Web API binds parameters, and how you can customize the binding process. By default, Web API uses the following rules to bind parameters: If the parameter is a “simple” type, Web…
Model Binder in Asp.net MVC
Introduction Model binding is one of the magic things in MVC framework. We know that if the model property matches exactly with view, then MVC architecture automatically takes care of the model binding process. This is very simple and straight forward. But, if the model property is not matched exactly with the view? Then how…
top 10 most important features of CSharp programming
1. Advantages of C# over Java I have found some interesting advantages of C# over Java and for that I have also won the prize from the Java team…!!. So I want to share it with all people so others can also know about it. C# being a .NET language, it supports language interoperability, i.e. C#…
RabitMq Vs Azure service Bus
Architecture Area Microsoft Service Bus RabbitMQ Concepts Namespaces Namespaces are used to create a sandbox area for messaging. Namespaces also support authentication and authorization around this sandbox Rabbit does not have a namespaces concept but there is a lot of similarity with the rabbit virtual host. The virtual host supports the similar security controls…
Wcf Vs Web Api
he following table describes the major features of each technology. WCF ASP.NET Web API Enables building services that support multiple transport protocols (HTTP, TCP, UDP, and custom transports) and allows switching between them. HTTP only. First-class programming model for HTTP. More suitable for access from various browsers, mobile devices etc enabling wide reach. Enables building services…
Traffic Manager in Azure
A: Azure Traffic Manager provides globally aware DNS resolution to Azure services located in different regions using an intelligent set of processes based on specified configurations and the geographical location of the users local DNS server (LDNS). It’s easiest to undestand by looking at an example. Consider the scenario shown below. In this example, a…