Open in app

Sign In

Write

Sign In

Cheranga Hatangala
Cheranga Hatangala

106 Followers

Home

About

Published in

Cheranga

·Aug 9, 2022

Using asynchronous fluent validations in ASP.NET API

Context While at work, my friend Ben, and myself came across an interesting problem to fix, when upgrading our APIs to latest .NET and upgrading their respective packages. Validation is crucial when designing APIs, and we are using the wonderful FluentValidation.AspNetCore in our APIs. How it seamlessly allow the engineers to…

Aspnetcore

4 min read

Using asynchronous fluent validations in ASP.NET API
Using asynchronous fluent validations in ASP.NET API
Aspnetcore

4 min read


Published in

Cheranga

·Jul 2, 2022

SQL Database migrations with Azure Container Instances and DbUp

When designing applications, having a data store is very common. Regardless of microservices or any other methodology you use designing the data store will be different compared to how you design your application. Although the data store migration activities will be associated with your application changes, separating that from your…

Azure

5 min read

SQL Database migrations with Azure Container Instances and DbUp
SQL Database migrations with Azure Container Instances and DbUp
Azure

5 min read


Published in

Cheranga

·Nov 13, 2021

Identity based triggers and bindings in Azure functions

Azure functions are getting improved, and updated more frequently now. Recently it has been upgraded to support identity based triggers and bindings. The Azure function will be provided only the required roles to access the resource so that its more secure. …

Azure Functions

8 min read

Identity based triggers and bindings in Azure functions
Identity based triggers and bindings in Azure functions
Azure Functions

8 min read


Published in

Cheranga

·Jun 17, 2021

Azure Bicep and Azure DevOps to deploy a function app

I love “Infrastructure as Code because it provides you the luxury of making continuous improvements to your infrastructure by treating it as code. In reality, as developers we try to design and code to the best of our ability or come and refactor later. …

Azure

9 min read

Azure Bicep and Azure DevOps to deploy a function app
Azure Bicep and Azure DevOps to deploy a function app
Azure

9 min read


Published in

Cheranga

·Jun 14, 2021

Help me, to help you — helping Microsoft DI framework to find dependencies.

This post is about dependency injection using Microsoft dependency injection framework. I use it a lot in my daily work and in personal projects. When compared to its alternatives such as AutoFac or Ninject one of the missing features (as of now) is to “discover” the dependencies and register in…

C Sharp Programming

3 min read

Help me, to help you — helping Microsoft DI framework to find dependencies.
Help me, to help you — helping Microsoft DI framework to find dependencies.
C Sharp Programming

3 min read


Published in

Cheranga

·May 9, 2021

Azure Functions — Validate Azure active directory tokens using your own custom binding

Azure functions are great! but as in many frameworks there are times where you would like to extend or write your own custom logic to do what you are intending to do. It’s not about re-inventing the wheel of course, but how to use the underlying framework’s extension points so…

Azure Functions

6 min read

Azure Functions — Validate Azure active directory tokens using your own custom binding
Azure Functions — Validate Azure active directory tokens using your own custom binding
Azure Functions

6 min read


Published in

Cheranga

·Apr 25, 2021

Securing and accessing APIs with Azure Active Directory (No secrets!)

Introduction It’s always a best practice to secure the APIs (or any other resource) once deployed into the cloud. In here let’s build a set of APIs which will be deployed to Azure and, make them accessible to each other securely. Scenario which we’ll be designing A popular API design pattern is backend for front end…

Azure

11 min read

Securing and accessing APIs with Azure Active Directory (No secrets!)
Securing and accessing APIs with Azure Active Directory (No secrets!)
Azure

11 min read


Published in

Cheranga

·Sep 11, 2020

Testing Azure functions with a twist

Introduction As in any other application, testing Azure functions are utmost important. Unit tests are targeted towards only a narrowed down aspect of the whole picture (as it should be anyways). Integration tests as per the name actually verifies how two or more components behave when integrated. But what if? We would like to…

C Sharp Programming

4 min read

Testing Azure functions with a twist
Testing Azure functions with a twist
C Sharp Programming

4 min read


Published in

Cheranga

·Aug 1, 2020

Azure Durable Function Patterns — External events

Introduction Azure durable functions lets you implement stateful functions. This is especially important if you would like to orchestrate a particular set of functions such as in a work flow fashion. …

Azure Functions

4 min read

Azure Durable Function Patterns — External events
Azure Durable Function Patterns — External events
Azure Functions

4 min read


Apr 13, 2020

Azure Functions — Modular based custom settings

In a previous article I explained how to load custom settings and to inject them as dependencies to your classes. In here we are going to use custom JSON files to represent different configurations and how we can register them as dependencies. The source code for this post can be…

Azure

4 min read

Azure Functions — Modular based custom settings
Azure Functions — Modular based custom settings
Azure

4 min read

Cheranga Hatangala

Cheranga Hatangala

106 Followers
Following
  • Chintana Wilamuna

    Chintana Wilamuna

  • Jeff Hollan

    Jeff Hollan

  • Stephan Hoekstra

    Stephan Hoekstra

  • Thanh Le

    Thanh Le

  • Eric Chapman

    Eric Chapman

See all (10)

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech

Teams