Troubleshooting high memory usage with ASP.NET Core on Kubernetes

August 17, 2017 · kubernetes .net-core asp.net-core

At work we are running several ASP.NET Core APIs on the hosted version of Kubernetes in the Google Cloud (GCE—Google Container Engine). In almost all of our components we noticed that they had unreasonably high memory usage. The »

Setting up Coveralls with OpenCover for a .NET Core project

June 14, 2017 · appveyor testing opencover coveralls .net-core

Update: The original version of this post was written when the dotnet toolchain was built on top of the project.json based project structure. Since then the project.json was deprecated, and .NET Core moved to a csproj-based approach. Because »

Jumpstart F# web development: F# with Suave.IO on .NET Core

March 12, 2017 · f# suave .net-core

In a previous post we've seen how we can create a simple web application with Suave on the full .NET Framework. In the last post of the series we'll take a look at how we can do the same thing »

Stubbing service dependencies in .NET using Stubbery

June 12, 2016 · .net .net-core asp.net asp.net-core testing integration-testing

Introduction When writing integration tests for a service (especially if we are running a long, end-to-end test), it often causes a problem that the external dependencies of our service fail. Let's say we have a service handling customer payments and »

How to validate action parameters with DataAnnotation attributes?

February 28, 2016 · asp.net c# .net-core asp.net-core

Model validation in MVC In both MVC and Web Api we can use the attributes provided in the System.ComponentModel.DataAnnotations namespace to specify validation rules for our models. Let's say we have a controller action with the following signature, »

ASP.NET Core 1.0: hints to get started

February 14, 2016 · asp.net c# .net .net-core asp.net-core dnx

I recently started working on implementing a Web Api application using ASP.NET Core 1.0, running it on Linux with the CoreCLR. There have been many changes introduced in this new version of ASP.NET, and there are also »