ASP.NET

Content Negotiation with ASP.NET Web API

Content Negotiation with ASP.NET Web API

Mira Javora
An important part of Web API is resource content negotiation. The HTTP protocol RFC defines content negotiation as the process of selecting the best representation for a given response when there are multiple representations available. In practise the same resource can be represented in a variety of different ways – lets say a contact information resource can be shown in JSON representation, but also in XML or even as a PNG QR code containing the same content.
Getting Started with ASP.NET Web API

Getting Started with ASP.NET Web API

Mira Javora
There are several options you can go for when deciding what technology you adopt for your RESTful API. In fact, you’ve got lots to chose from.
Scaling SignalR with Redis

Scaling SignalR with Redis

Mira Javora
SignalR was built with scalability in mind. Even though you will be able to run a fair number of concurrent connections on a single server instance, there will come a point where a single node will not be able to handle the load.
Re-Use MVC Views Across Projects With Razor Generator

Re-Use MVC Views Across Projects With Razor Generator

Mira Javora
You may consider storing the content in a resource file and embed it in a class library. Or perhaps do a clever virtual directory mapping in your IIS setup. However, the best solution is simply to compile the views into a class library using Razor Generator.
Use 51Degrees.mobi to Improve Mobile Traffic Detection

Use 51Degrees.mobi to Improve Mobile Traffic Detection

Mira Javora
The default browser compatibilities mobile detection in ASP.NET in System.Web.HttpBrowserCapabilitiesBase is pretty poor. It ignores majority of the mobile devices and since it does not update on regular basis, it will ignore any new devices as well. Simply put, if you are using mobile-specific views then most mobile devices will get only the desktop views, because the device will be not recognised as a mobile device.
Render Email Templates Using Razor Engine

Render Email Templates Using Razor Engine

Mira Javora
A larger web projects would typically consist not only of front end web project, but would include additional class libraries and offload some of the heavy processing work to service or console apps. The common problem is then how do you update the front-end and signal the site that some work has been completed.

SignalR-Dependency Injection

Mira Javora
A larger web projects would typically consist not only of front end web project, but would include additional class libraries and offload some of the heavy processing work to service or console apps. The common problem is then how do you update the front-end and signal the site that some work has been completed.

SignalR - Publish Data From Win Forms Using Hub Proxies

Mira Javora
A larger web projects would typically consist not only of front end web project, but would include additional class libraries and offload some of the heavy processing work to service or console apps. The common problem is then how do you update the front-end and signal the site that some work has been completed.

SignalR – Push Data To Clients Using IHubContext

Mira Javora
The Clients dynamic property of the Hub gives you access to all clients connected to the hub within the hub class. However, what if you would like to push data to the clients from outside of the Hub class. One of the most common scenarios is when you want to push data to the clients from an admin system in your back-end.
SignalR – Introduction to SignalR – Quick Chat App

SignalR – Introduction to SignalR – Quick Chat App

Mira Javora
SignalR is an open source async signalling library. It was made by David Fowler and Damian Edwards. In a nutshell, it allows you to pass data between client and server in realtime. It’s not only for web, it has JS, .Net, WP7 and Silverlight clients and supports self-hosting so you can run the SignalR server in win service or web context. It will run on .Net 4.0 or 4.5 and to get websockets running, you will need IIS8 or IIS8 Express. That said, it will run on older versions of IIS and will switch to different transport modes.