Default implementations in interfaces

This post is about the new C# 8.0 feature Default implementations in interfaces. This feature helps you to provide an implementation for your new method in an interface. So you won’t break existing implementation by adding a new method. From the documentation - An interface member can now be specified...


Get all blobs in a container and change the content type.

This post is about getting all the blobs in a container and change the content type. This tip or snippet is quite useful in scenarios where you want to change content type of big number of blobs. This is a tip or snippet more than a blog post. I faced...


Working with gRPC in ASP.NET Core

This post is about Working with gRPC in ASP.NET Core. gRPC is a language agnostic, high-performance Remote Procedure Call (RPC) framework. The main benefits of gRPC are: Modern high-performance lightweight RPC framework. Contract-first API development, using Protocol Buffers by default, allowing for language agnostic implementations. Tooling available for many languages...


Resizing Images using Azure Functions

This post is about how to resize images uploaded to a blob storage using Azure functions. In my current project, system used to resize the image while uploading the image to blob storage. This approach got two major drawbacks - the process will take some time and the resize is...


Using EF Core in a Separate Class Library

This post is about how to use EF Core in a separate class library. And how to use it in the ASP.NET Web API and how to run migrations to create database. One of the common design approach is split the application in to different layers or tiers. In this...


How to deploy Azure WebJobs using PowerShell

This post is about how to deploy Azure Web Jobs using PowerShell. Recently I had to migrate an on premise application to Azure PAAS. The application has few console application, which is used to do schedule operations using Windows scheduled tasks. So as I migration to PAAS, I choose Azure...


Working with JSON in ASP.NET Core 3.0

This post is about working with JSON data type in ASP.NET Core 3.0. JSON stands for JavaScript Object Notation, which is an Open standard light weight format for storing and transporting data. JSON.NET was a popular library which was used in ASP.NET for working with JSON. As part of making...