Meditation and Mindfulness for Software / IT Professionals. Conducted by Bipin Joshi in Thane. Read more...

ASP.NET Core

1234
Dealing with Camel Casing in ASP.NET Core Web API
Some time ago I wrote a three part article on creating and consuming Web API in ASP.NET Core. You can read them here - Part 1, Part 2, Part 3. If you worked with that example you must have noticed that while serializing data to the client, the ASP.NET Core Web API uses camel casing.
Posted On : 27 Jun 2017
Understanding Routing in ASP.NET Core MVC
In ASP.NET Core MVC, a request URL is mapped to a controller's action. This mapping happens through the routing middleware and you can do good amount of customization. There are two ways of adding routing information to your application: conventional routing and attribute routing. This article introduces you with both of these approaches with the help of an example.
Posted On : 13 Jun 2017
7 Things to Know About SQL Server Distributed Caching in ASP.NET Core
In an article I wrote some time ago, I explained the essentials of in-memory caching in ASP.NET Core. Although in-memory caching serves its purpose in many small applications, at times you need distributed cache rather than local in-memory cache. Consider a situation where a web farm is serving the requests. In this case you can't guarantee that the server storing the cache will serve all the requests. You may also want your cache to survive application restarts.
Posted On : 06 Jun 2017
Creating a Web API in ASP.NET Core
RESTful services are quite common and popular these days. If you ever developed modern service-based applications using ASP.NET Web Forms and ASP.NET MVC, chances are you used a Web API to create REST services. No wonder ASP.NET Core also allows you to create a Web API. This article discusses how a Web API service can be created in ASP.NET Core. It then shows how the created service can be invoked from JavaScript code.
Posted On : 15 May 2017
10 things to know about in-memory caching in ASP.NET Core
The primary purpose of any caching mechanism is to improve performance of an application. As an ASP.NET developer you are probably aware that ASP.NET web forms as well as ASP.NET MVC could used Cache object to cache application data. This was often called server side data caching and was available as an inbuilt feature of the framework. Although ASP.NET Core doesn't have Cache object as such, you can implement in-memory caching quite easily. This article shows you how.
Posted On : 02 May 2017
Read the application's configuration in ASP.NET Core
As an ASP.NET developer you always used web.config to store and retrieve the application's configuration information. ASP.NET Core uses a different configuration system that is more flexible and powerful than before. In this article you will learn the basics of storing and retrieving the configuration information from JSON and XML files. You will also learn to use DI to inject this information into controllers.
Posted On : 31 Mar 2017
Offline installation of VS2017 in 4 Easy Steps
By default the installation of Visual Studio 2017 is taken care by a web installer. That means you download only the required components over the web. Although this works quite well in many cases, at times you may want to install Visual Studio 2017 in offline manner. Some of the possibilities include unstable internet connection and installation on large number of machines of your organization. As of this writing there is no ISO image of the product that one can download. Luckily, there is a command line way to grab all the installation components that you need for an offline installation. So, let's see how to grab them in four easy steps.
Posted On : 08 Mar 2017
Enable Response Compression in ASP.NET Core in 5 Easy Steps
As an ASP.NET developer you are probably aware that IIS comes with its own compression module that can effectively compress the response content. This can dramatically reduce the network bytes giving good performance benefits. However, what if you aren't using IIS at all? Luckily, ASP.NET Core offers you a middleware that can compress the response content for you. In this article you will learn to configure the ASP.NET Core response compression middleware in your web application.
Posted On : 28 Feb 2017
Deploy ASP.NET Core Web Application to IIS in 5 Easy Steps
Once you finish developing your ASP.NET Core web application the next step would be to deploy it under the IIS. Although this process is quite similar to traditional ASP.NET Web Forms or MVC applications, there are a few things you need to be aware of. To that end this article explains how an ASP.NET Core web application can be deployed under IIS.
Posted On : 06 Feb 2017
Create Custom Exception Filter in ASP.NET Core
In my previous article I explained how errors in an ASP.NET Core web application can be dealt with using middleware. I also mentioned that time that you can also use exception filters to handle errors. In this article I will explain how to do just that. In ASP.NET MVC 5 you used the [HandleError] attribute and OnException() controller method to deal with exceptions that arise in the actions of a controller. In ASP.NET Core the process is bit different but the overall concept is still the same.
Posted On : 16 Jan 2017
1234