Redis is an open source (BSD licensed), in-memory data structure store, used as a database, cache and message broker. Lets install redis server in docker. Beauty of docker is that without installation of actual software, you can install it in docker and can access those application. Lets create a simple example and divide it in two parts.
Read MoreTag: .net
Upload files in Azure blob storage using ASP.Net core Web API
Azure blob storage service allows user to create / update / upload unstructured data in Azure. Later, user can access / download this data from anywhere in the world. This data can be Audio, Video, Image, Text or Log file. We can also use these service for streaming video or audio files. Users are directly allow to create / upload blob from Azure portal or developer can also create / upload blob via code. We can access these blobs via HTTP / HTTPS service also.
Read MoreFunc delegate in C#
Func is a generic delegate introduced in .Net framework version 3.5. Generally, whenever we want to create delegate, we follow below procedure:
Read MoreVariable number of routes in ASP.Net MVC
We all know about default routing mechanism of ASP.Net MVC that is how routing is works. I would call below routing mechanism as static routing. In this routing, our URL pattern is fixed. See below pic.
Read MoreDependency injection in WCF service using AutoFac
Dependency injection is one form of the broader technique of inversion of control (SOLID – Dependency inversion principles). In software, There should be less coupling between component and cohesion should be high. High level module should not depend on low level modules rather should depend on Abstraction.
Read More