upgraded c# example to asp.net vNext