Configuring multiple ASP.NET Core hosting environment

The hosting environment is used to indicate at runtime on which environment an ASP.NET Core application is running. There can be multiple values for ASP.NET Core Hosting Environment and it can be set any single value. Framework provided environments are Development, Staging & Production but you can specify your own values as well i.e. Testing, […]

ASP.NET Core Bundling & Minification

Bundling & Minification are two distinct techniques that can be used to improve page load performance for web applications. In ASP.NET Core bundling & minification is not available by default and needs to be implemented for a web application. In ASP.NET Core web apps client-side resources (.js & .css files) can be bundled and minified […]

Top 12 ASP.NET Core libraries for developers

Many developers when they start working on ASP.NET Core they have the decision to make like which libraries are they going to use to get the code done. A list of Top 12 ASP.NET Core Libraries will allow developers to understand these so that they can pick appropriate libraries for their projects. Now really libraries […]

ASP.NET Core Exception Middleware

Handling errors is one of the most important aspect of any application. ASP.NET Core Exception Middleware provides an option to implement global exception handling logic. ASP.NET Core has provided try, catch & finally block for exceptions handling. Instead of implementing these blocks in all the methods it is better to implement a global exception handler. […]

ASP.NET Core Logging with Serilog

ASP.NET Core has built-in logging API that supports a wide variety of logging providers. ASP.NET Core logging needs to be configured before using it in your application. It even supports non-built-in third party log providers. Logging with serilog provides structured logging which makes it easier to be read by programs. Logging providers works by storing […]

OOP Concept – Polymorphism in C# .NET

Polymorphism is one of the important building blocks in object-oriented programming. Poly means many and morph means forms i.e. many forms of an object. It means design by interface i.e. many classes implementing the same interface to provide the same services but each class has its own implementation of those services. Polymorphism occurs when a […]

ASP.NET Core Caching Implementation

Caching is a technique in which frequently used data is added to some memory that makes a request to this data faster as there is no need to fetch this data from the database for each request. ASP.NET Core caching provides support for several different types of Caches like in-memory cache, distributed cache, and response […]

OOP Concept – Encapsulation in C# .NET

Encapsulation is one of the important building blocks in object-oriented programming. It is a mechanism in which data and code which manipulate this data are enclosed into a single unit. This unit can be a class in c# which allows the developer to hide data by making variables inaccessible outside class and providing functions, which […]

Arrays and How to sort long Array in Java

To sort long array in java use Arrays.sort() method of java.util package. Java arrays are a data structure that is used to store data variables of the same type. These data variables are sequential collections of elements. Instead of declaring each variable individually, one variable is declared which can hold a collection of all variables […]

ASP.NET Core Middleware

Middleware got introduced in ASP.NET with .NET Core. ASP.NET Core Middleware allows controlling the web application request pipeline. The middleware approach got introduced to configure the ASP.NET request pipeline. Introduction ASP.NET Core Middleware is a piece of code that gets executed on every request. ASP.NET Core comes with built-in middleware e.g. routing, session, MVC, etc […]