ConfigurationManager vs WebConfigurationManager vs CloudConfigurationManager

In my recent post, I have explained various ways of storing application settings and connection strings for the web application hosted in Azure App Service. Let’s now see what .NET Framework provides us to consume these settings from the code and when to use what?.

Continue reading “ConfigurationManager vs WebConfigurationManager vs CloudConfigurationManager”

Advertisements

Extract a zip file stored as Azure Blob with this simple method

Ever got a scenario wherein you receive zip files into Azure Blob Storage and you are asked to implement a listener to process individual files from the zip file?

If you’re already working on azure PaaS services, I don’t need to explain you how to implement a listener or a blob trigger using azure function app but what i wanted to focus in this post is to extract the zip file contents into an another blob container and process individual files in it.

Let’s get started…

Continue reading “Extract a zip file stored as Azure Blob with this simple method”

New type of URI Routing in MVC 5 – Attribute Routing

This article walks you through the new method of URI Routing introduced in ASP.NET MVC 5 called Attribute Routing.

What You’ll learn:

  • Why Attribute Routing?
  • How to enable it?
  • Various available options to work with it.

Continue reading “New type of URI Routing in MVC 5 – Attribute Routing”

Serializing & Deserializing – .NET Managed Object to XML

This article guides you to serialize any managed .NET object to XML and how to deserialize it back to .NET object

What You’ll learn:

  • Serialialization & Deserialization overview
  • Serializing a .NET object to XML with an Example
  • Deserializing XML back to the .NET Object with an Example

Continue reading “Serializing & Deserializing – .NET Managed Object to XML”

Encrypt and Decrypt Data using .Net Framework

This article explains how we can Encrypt and Decrypt data using .Net Framework

What You’ll learn:

  • Namespace – System.Security.Cryptography
  • Symmetric and Asymmetric Algorithms
  • Symmetric –  Key and IV (Initialization Vector)
  • Asymmetric – Public Key and Private Key
  • Encryption and Decryption

Continue reading “Encrypt and Decrypt Data using .Net Framework”