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.
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
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
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
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
CREATE TABLE public.customer(
id serial NOT NULL,
firstname character varying(45) NOT NULL,
lastname character varying(45) NOT NULL,
email character varying(50) NOT NULL,
createtime timestamp without time zone NOT NULL,
PRIMARY KEY (id)
) WITH (OIDS = FALSE) TABLESPACE pg_default;
public.customer OWNER to dev;
Step 2 Create a new Console Application (.NET Core).