Recent Posts

1
Comments

OWIN and Razor by Fredrik N

Just for fun added a simple support for using Razor together with OWIN. You can read a little bit about OWIN on my previous blog post . I wanted my example to be similar to the MVC pattern, so I can use a Model, Controller (in this case I use a simple...
Filed under: , ,
1
Comments

Feature enabling when using Branch by Abstraction by Fredrik N

Something that I haven't liked for a long time is the use of branches in a projects. I don't like the waste when it comes to merge between branches, "Merge hell". In the beginning of the project I'm in now, it took hours to do merges before a release...
Filed under: , ,
4
Comments

Creating a simple REST like service with OWIN – Open Web Server Interface by Fredrik N

" OWIN, a standard interface between .NET web servers and web applications. The goal of OWIN is to decouple server and application and, by being an open standard, stimulate the open source ecosystem of .NET web development tools." – owin.org OWIN can...
Filed under: , , ,
2
Comments

Team Foundation Server 2012 build notification using ASP.Net Web API Part 2 by Fredrik N

In my previous blog post I wrote about how to get information about a build, the problem with that code was that the code only returned the user who requested the build, not the user who had checked-in a changeset that failed the build. So this blog post...
4
Comments

Team Foundation Server 2012 build notification using ASP.Net Web API by Fredrik N

For the last three years I have helped a financial company with a business critical financial system. I have the role as an architect and coach when it comes to system design. I also spend times to make the team work more efficiently, to release new features...
1
Comments

Using Razor engine together with Asp.Net Web API to create a Hypermedia API by Fredrik N

This blog post is created just for fun, and it's will be about how we can use Razor to create a Hypermedia API using XML as a hypermedia for a "Maze game" inspired from the book "Building Hypermedia APIs with HTML5 and Node", Mike Amundsen. Only the server...
6
Comments

ASP.Net Web API and using Razor the next step by Fredrik N

In my previous blog post “ Using Razor together with ASP.NET Web API ” I wrote about a solution to use a MediaTypeFormatter to render HTML by using Razor when the API is accessed from a browser. I’m now sort of done with the basics and will share the...
Filed under: , ,
11
Comments

Using Razor together with ASP.NET Web API by Fredrik N

On the blog post “ If Then, If Then, If Then, MVC ” I found the following code example: [HttpGet] public ActionResult List() { var list = new [] { "John" , "Pete" , "Ben" }; if (Request.AcceptTypes.Contains( "application...
6
Comments

ASP.NET Web API Exception Handling by Fredrik N

When I talk about exceptions in my product team I often talk about two kind of exceptions, business and critical exceptions. Business exceptions are exceptions thrown based on “business rules”, for example if you aren’t allowed to do a purchase. Business...
5
Comments

Log message Request and Response in ASP.NET WebAPI by Fredrik N

By logging both incoming and outgoing messages for services can be useful in many scenarios, such as debugging, tracing, inspection and helping customers with request problems etc. I have a customer that need to have both incoming and outgoing messages...
More Posts Next page »