Implementing background tasks in .NET Core 2.x webapps or microservices with IHostedService and the BackgroundService class

Background tasks and scheduled jobs are something you might need to implement, eventually, in a microservice based application or in any kind of application. The difference when using a microservices architecture is that you can implement a single microservice process/container for hosting these background tasks so you can scale it down/up as you need or…

2

Comparing ASP.NET Core IoC container service lifetimes with Autofac IoC container instance scopes

In ASP.NET Core you can use the simple built-in IoC container or you can also plug any other more advanced IoC container like Autofac. When plugin an external container like Autofac, you can still use ASP.NET Core methods like services.AddTransient<> or services.AddSingleton<> or you can also use the more granular methods in Autofac based on…

0

Generating Swagger description metadata from your ASP.NET Core Web APIs with Swashbuckle

What is Swagger Swagger is a very much used open source framework backed by a large ecosystem of tools that helps you design, build, document, and consume your RESTful APIs. It is probably becoming as the main standard for this domain (APIs description metadata). The heart of Swagger is the Swagger Specification (API description metadata…

0

Summary of Microsoft Docker Images for .NET Core and .NET Framework

Even when these official images are still evolving, I think that a summary about the multiple Microsoft Docker images for .NET available at Docker Hub would be a “nice to have” thing. This blog post is related to my previous blog post on “Docker containers – Should I use .NET Core or .NET Framework?”, however…

5

Docker containers – Should I use .NET Core or .NET Framework?

The short answer is: “For Docker containers, use .NET Core whenever is possible”. But, below is a summary decision table depending on your architecture or application type and the server operating system you are targeting for your Docker containers. Take into account that if you are targeting Linux containers you will need Linux based Docker…

0

.NET, Cloud and Mobile Events in Argentina and Chile – Content

Last week (Sept. 19-22 2016) I delivered a similar event in Buenos Aires and in Santiago the Chile, afterwards. Here I post the agenda I delivered, a few pictures about it plus the decks I used about it. Morning Event – Developing microservices in the Cloud with .NET, Docker and Microsoft Azure Service Fabric Related…

0

.NET Core, .NET Framework, Xamarin – The “WHAT and WHEN to use it”

I’m writing this blog post about “.NET end-to-end” now that we just released the .NET Core Platform 1.0 RTM, so it’s clear “who is who” and “when to use what”. It’s a long post but I think it’s good to have available a single post about .NET end-to-end. .NET is nowadays a development-platform running across…

0

What is .NET Core 5 and ASP.NET 5 within .NET 2015 Preview

(UPDATE – Nov.2016) – Note that .NET 5 and ASP.NET Core 5 were temporal brandings while .NET Core was in beta. Its final branding was .NET Core 1.0 and ASP.NET Core 1.0 when released in June 2016, due to the big shift or “reset/modernization” in .NET Core compared to .NET 4.x. — Last week, on…

7