Author: pakzad

C# 12 new features 0

C# 12 new features

Primary constructors for non-record classes and structs In C# 11 and earlier, non-record classes and structs could only be initialized using the default constructor. This meant that you had to explicitly initialize all of...

Switch expression in C# 12 0

Switch expression in C# 12

The switch expression is a concise way to write a switch statement that returns a value. It is similar to the ternary operator, but it can handle multiple cases and patterns. For example, suppose...

All private IP addresses within a subnet on AWS 0

All private IP addresses within a subnet on AWS

To get all the IP addresses in use within a subnet using Python on AWS, you can use the Boto3 library, which is the official AWS SDK for Python. This allows you to interact...

What’s RabbiMQ and Why Erlang? 0

What’s RabbiMQ and Why Erlang?

RabbitMQ is an open-source message broker software that implements the Advanced Message Queuing Protocol (AMQP). It is designed to enable communication between distributed applications by allowing them to exchange messages through queues. RabbitMQ is...

How to Efficiently Read AWS Secrets in .NET Core 0

How to Efficiently Read AWS Secrets in .NET Core

you know that securing sensitive data in applications is critical. AWS Secrets Manager helps you protect access to your applications, services, and IT resources without the upfront investment and on-going maintenance costs of operating...

Docker for ASP.Net Core SPA projects 0

Docker for ASP.Net Core SPA projects

This time we look into how to create Docker for ASP.Net Core SPA projects. Create SPA Project When you create a netcore SPA project, either using VS or using dotnet new and some SPA templates as...

Azure Active Directory with Swashbuckle in ASP.NET Core 0

Azure Active Directory with Swashbuckle in ASP.NET Core

Swashbuckle is a great tool to create documentation of your APIs developed with ASP.NET Core. I had a blog post before about Swagger in ASP.Net core in general here but today I am going to talk...

HSTS policy with ASP.Net Core 2.1 0

HSTS policy with ASP.Net Core 2.1

One of the novelties of ASP.NET Core 2.1 is that it automatically redirects all traffic from HTTP to https and, in addition, forces the use of HSTS. I am sure you know HTTPS well...

ASP.NET Core 2.1 application in Docker with HTTPS enabled 0

ASP.NET Core 2.1 application in Docker with HTTPS enabled

In one of my previous blog posts, I talked about using HSTS in ASP.Net Core application, today we look into how to deploy ASP.NET Core 2.1 application in Docker with HTTPS enabled. If you want to...

Debug netcore running in WSL with VS2017 0

Debug netcore running in WSL with VS2017

Today I had to face the painful situation of a code in netcore that worked correctly in my machine (Windows 10) but that when running in Docker it failed miserably. I decided to dedicate...