c#

iOS 7 Style Progress Meter in C#

On iOS 7, when you download or update an app from the App Store, there's a small circular progress indicator that shows how complete the download is. It's simple, compact, and provides information well. Making a version of this is incredibly easy using C# and Xamarin on your iOS app.…

Upload to Azure Storage REST API from Xamarin

It surprised me to find that uploading an image to Azure Storage using the REST API with Xamarin iOS wasn't straightforward. After a lot of research and by combining a couple techniques, we can easily upload a UIImage to blob storage using the Azure Storage REST API. Here's what you'll…

ASP.NET Web API In-Memory Hosting Integration Test and Ninject

A while back, I posted how I used StructureMap along with the new ASP.NET self-host features to do integration tests on my ASP.NET Web API. Since that post, I've tried out Ninject with some new projects and, thanks to Filip, I discovered In Memory Web Hosting. This post…

Force Web API to Fail with ActionFilter

Sometimes, what you really want is failure. Success is great. Hooray! The crowds roar at your continued success. But in reality, everything is not peachy. Developers choose to ignore failure planning to their peril. Me? I need ASP.NET Web API to fail. In one of my projects, I utilize…

Authentication and Membership Updates for MVC 4 RTM

I've spent the last couple days moving a project from MVC 4 RC to MVC 4 RTM. It's gone well, but I encountered a couple trouble spots related to MVC 4 authentication and membership that I want to share. Starting Point I'm using a MVC 4 application that was created…

Setup StructureMap with ASP.NET Web API Release Candidate

One important change from the Beta of Web API to RC was the way it handles IoC. So far, there have been a few guides of how to do it with Ninject or Unity, but I'm still using StructureMap for many of my projects. In a previous post, I…