Blog

Blog posts on .NET, Azure, and more.

Getting started with Cosmos DB SQL Provider for Entity Framework Core

August 31, 2018 by Anuraj

ASPNET Core Cosmos DB EF Core

This post is about working with Cosmos DB SQL Provider for Entity Framework Core. Azure Cosmos DB is Microsoft’s globally distributed, multi-model database. With the click of a button, Azure Cosmos DB enables you to elastically and independently scale throughput and storage across any number of Azure’s geographic regions.

Enable HTTP2 on Kestrel

August 25, 2018 by Anuraj

Kestrel HTTP2 ASPNET Core

This post is about enabling HTTP2 on Kestrel. HTTP/2 is a major revision of the HTTP protocol. Some of the notable features of HTTP/2 are support for header compression and fully multiplexed streams over the same connection. While HTTP/2 preserves HTTP’s semantics (HTTP headers, methods, etc.) it is a breaking change from HTTP/1.x on how this data is framed and sent over the wire.

Azure Virtual Machine Custom domain using Azure DNS Zone

August 07, 2018 by Anuraj

Azure VM Azure DNS Azure

This post is about how to use custom domain name for Azure VM using Azure DNS. A DNS zone is used to host the DNS records for a particular domain. Azure DNS allows you to host your DNS zone and manage your DNS records, and provides name servers that will respond to DNS queries from end users with the DNS records that you create.

Create a build pipeline for Angular and ASP.NET Core apps with Visual Studio Team Services

August 05, 2018 by Anuraj

ASP.NET Core Angular

This post is about creating a build pipeline for your Angular and ASP.NET Core apps with Visual Studio Team Services. If you don’t have a VSTS account, you need to create a VSTS account, then a project, you can use default values. In this post I am using GitHub as my source control. And I am using VSTS only for creating a build. Once you create a project, click on Build and Release menu. And click on the New definition button.

Anti-forgery validation with asp dotnet core and angular

August 04, 2018 by Anuraj

ASP.NET Core Angular

This post is about enabling Anti-forgery validation in single page applications using ASP.NET Core and Angular. The anti-forgery token can be used to help protect your application against cross-site request forgery. In earlier versions of ASP.NET, you had to explicitly decorate a controller or an action method to enable Anti-forgery, in ASP.NET Core Web API all the unsafe methods(PUT, POST) anti-forgery validation is enabled by default.

Copyright © 2024 Anuraj. Blog content licensed under the Creative Commons CC BY 2.5 | Unless otherwise stated or granted, code samples licensed under the MIT license. This is a personal blog. The opinions expressed here represent my own and not those of my employer. Powered by Jekyll. Hosted with ❤ by GitHub