SouthWorks Blogs
  • Home
  • About
Jorge Rowies
  • Validating requests in ASP.NET Web API (beyond ModelState.IsValid)

    Published by Jorge Rowies on February 14th, 2013 8:17 pm under ASP.NET Web API, C#

    No Comments
    Lately I’ve been working with ASP.NET Web API and I had to solve a couple of issues regarding data validation when sending a request to the API. Problem #1 When exposing an operation that receives several optional parameters (i.e. to perform a search), sending invalid parameters will not be detected by the API. Example: Given... read more
  • Setup federated auth in an MVC 4 app using WIF 4.5 and Windows Azure ACS

    Published by Jorge Rowies on January 11th, 2013 10:18 am under ACS, ASP.NET MVC, Access Control Service, WIF, Windows Azure

    No Comments
    In this post I’ll show a few simple steps to setup federated auth in an MVC 4 application using WIF 4.5 and ACS. Prerequisites: Visual Studio 2012 with Identity and Access Tool An Access Control Service namespace Steps: Create a new MVC 4 project targeting .NET Framework 4.5 (using the Internet Application template). Open _LoginPartial.cshtml... read more
  • Entity framework performance issues with lazy relationships

    Published by Jorge Rowies on December 27th, 2012 9:09 am under C#, Entity Framework, NHibernate

    No Comments
    During the last weeks I’ve been working in an application that uses Entity Framework (code-first) and I had a performance-related issue that I thought worth sharing. After implementing some features in the app I noticed some performance issues, so I decided to add MiniProfiler and see how things were going under the hood. The cause... read more
  • How to build a basic fluent interface in 8 steps

    Published by Jorge Rowies on February 1st, 2012 2:40 pm under C#, Fluent API, Internal DSL

    No Comments
    Disclaimer: the aim of this post is not to show a comprehensive list of the different techniques that can be used to write a fluent API, tons of good information is out there on the web and. If you are very interested in the subject, please take a look at Martin Fowler’s Domain-Specific Languages. Now... read more
  • Fluent API for setting up Windows Azure ACS

    Published by Jorge Rowies on January 28th, 2012 1:45 pm under ACS, Access Control Service, C#, Fluent API, Windows Azure

    No Comments
    During the last couple of months I’ve been working for the p&p guys at Microsoft, developing the sample application for a new guide around Windows Azure hybrid application integration. One of the components of the sample solution is a console application that performs all the steps required to have the ACS and Service Bus namespaces... read more
  • Windows Azure Caching Service: How distributed and local caches work together

    Published by Jorge Rowies on January 17th, 2012 11:12 am under Cache, Caching Services, Windows Azure

    No Comments
    Introduction The intention of this post is to show how the distributed and local cache of the Windows Azure Caching Service work together. We are going to cover the implications of enabling the local cache feature, the interaction between the local and distributed caches, and how to prevent unexpected errors that can be caused by... read more
  • High memory consumption in WaWorkerHost.exe

    Published by Jorge Rowies on January 9th, 2012 9:08 pm under Windows Azure, Worker Roles

    1 Comment
    When the memory usage of the WaWorkerHost.exe process starts going up without apparent reason, and you are using Tasks in your worker role, it might be the time to check for unhandled exceptions and start handling them properly. Throwing exceptions from Tasks in a worker role and NOT properly handling them: Might cause this memory... read more
  • Using Rule Actions in Windows Azure Service Bus Subscriptions

    Published by Jorge Rowies on January 6th, 2012 7:50 pm under Service Bus, Windows Azure

    1 Comment
    Setting rule actions in Service Bus Subscriptions is a useful mechanism for automatically modify properties of BrokeredMessages when they are sent to a Topic. The easiest way for assigning a rule action to a subscription is to do it when the subscription is being created: Here we are setting the value of the DeliveryCount property... read more

Blogroll

  • Personal blog (in spanish)

Tags

Access Control Service ACS C# Cache Caching Services Entity Framework Fluent API Internal DSL MVC NHibernate Service Bus WebAPI WIF Windows Azure Worker Roles

Archives

  • February 2013 (1)
  • January 2013 (1)
  • December 2012 (1)
  • February 2012 (1)
  • January 2012 (4)

@jrowies

  • Home
  • About
RSS

Copyright © 2013 Southworks. All Rights Reserved.