How to Send Email Using SignalR

This post shows how SignalR could be used to send messages between different C# console clients using Message Pack as the protocol. An ASP.NET Core web application is used to host the SignalR Hub. Setting up the Message Pack SignalR server Add the Microsoft.AspNetCore.SignalR and the Microsoft.AspNetCore.SignalR.MsgPack NuGet packages to the ASP.NET Core server application where the SignalR Hub will be hosted. The Visual Studio NuGet Package Manager can be used for this. Or just add it directly to the .csproj project file. Setup

Continue Reading

8 Tips to Increase Your ASP.NET Website Speed

This article suggests a few tips to improve the performance of an ASP.NET application. There are many more things which may ensure a better performance and faster response time for a web application. I am discussing only a few of the best practices that will help you avoid some unwanted performance hitters from your application. So, you will have a more lightweight application which runs quicker and gives a better response time. #1. Use Caching Caching is

Continue Reading

Configuration Data in ASP.NET Core

Depending on your context you may not want to be storing these types of application settings in configuration files that are committed to source control. As you would expect, my local environment for development and once I deploy to Azure have completely different configurations. So how do you change the configuration from local to production? If you are used to using appSettings from the app.config and web.config, you may have been going down the road of transforming and replacing values with tools With

Continue Reading

Cookies in ASP.NET

Cookies are also known by many names, HTTP Cookie, Web Cookie, Browser Cookie, Session Cookie, etc. Cookies are one of several ways to store data about web site visitors during the time when web server and browser are not connected. Common use of cookies is to remember users between visits. Practically, cookie is a small text file sent by web server and saved by web browser on client machine. Use of Cookies? Cookies may be

Continue Reading

Future Of .NET Core

In this article, I will focus on the .NET Core part of the .NET ecosystem. One thing is for sure, .NET Core is the future of .NET. The future of .NET Core is very bright and exciting. More people and organizations are getting involved in the development of .NET Core. What is .NET Core? Microsoft’s .NET Core is a cross-platform, unified, fast, lightweight, modern, open-source framework for building mobile, Web, and Windows applications and services

Continue Reading

Getting Started With PostgreSQL Using Dapper In .NET Core

PostgreSQL is a powerful, open source object-relational database system that is very easy to use. Dapper is a high performance micro-ORM, which is my favorite. Now, I will show you how to use this combination in .NET Core. Requirement Npgsql 3.1.9 Dapper 1.50.2 My Environment Visual Studio 2015 Community with update 3 PostgreSQL 9.6 pgAdmin 4 Demonstration Step 1 Create a new table in pgAdmin Step 2 Create a new Console Application (.NET Core).

Continue Reading