Debug and View Expressions in VS 2013

יום שלישי, יולי 1, 2014

Expressions are important constructs and working with them provides lots of capabilities. Unfortunately they are difficult to view and debug vith Visual studio. Li Chen found a way to use the good old Expression tree visualizer to solve this. Expression tree visualizer, as the name indicates, is a Visual Studio visualizer for visualizing expression trees. It is a must if you work with expressions frequently. Expression Tree Visualizer is a Visual Studio 2008 sample. There is a Visual Studio 2010 port available on codeplex. If you want to use it with a later version of Visual Studio, there is...
no comments

Spatial support in Web API and ODATA

יום שלישי, יוני 3, 2014

The spatial support in ASP.NET WEB API is currently very limited. When creating a WEB API project a reference to System.Spatial is created automatically. When creating an OData 4.0 (WEB API 2.2) a reference to Microsoft.Spatial is created. Both System.Spatial and Microsoft.Spatial are actually the same. It is the spatial library that was developed for WCF Data Services and can be installed by importing the NuGet package Microsoft.Spatial. Microsoft.Spatial contains wide collection of spatial types and formatters for GeoJson and GML. Unfortunately this is where the WEB API and ODATA support for spatial functionality ends. The OData standard defines...
no comments

SignalR Message Format

יום רביעי, מרץ 12, 2014

I looked around for documentation about the message format of Asp.Net SignalR but I could not find any so I had to explore myself and produce the following summary about Asp.Net message format. Messages are serialized as JSON objects and contain metadata about the handlers and the connection as well as payload (i.e. the data to transfer) The following information is included in the messages: - Hubs (H): Handlers (i.e methods) on the server as well as on the clients are grouped in "Hubs".- Method (M): The name of the Handler that will process the message.- Groups: Clients can...
no comments

WAAD, OAuth and Javascript

יום שלישי, מרץ 4, 2014

As you probably know Microsoft released AAL (Windows Azure AD Authentication Library for .NET) which is a great API for interacting with WAAD and implement the OAuth code flow. This API is extremely easy to use yet it works only for single threaded (STA) clients. It means that you can use it in a console application or windows store app but not in a browser. The scenario in which a client wants to call a web api in a SPA (Single Page Application) looks very interesting so I searched for an JavaScript SDK for WAAD but I could not...
no comments

Is OAuth 2.0 Secure ?

יום שלישי, פברואר 4, 2014

When ever I introduce OAuth to my clients they ask. “Is it secure? We heard that …” There is doubt that there is a lot controversy about OAuth yet there is also no doubt that OAuth 2.0 is the leading authorization standard / framework in the web today. Eran Hammer one of OAuth original creators published lots of criticism on the final OAuth 2.0 specification in which he claims that OAuth 2.0 is not a specification but a framework. In his view the spec is not specific enough and leave to much room for variations in the implementations. He...
no comments