ASP.NET Core3.1 uses Ocelot open source gateway

1. Build downstream services Add 2 ASP.NET Core projects, namely Order.Api and User.Api The Order.Api port is set to 5001, and the User.Api port is set to 5002, both using the HTTP protocol UsersController code: [ApiController] [Route(“v1”)] public class UsersController : ControllerBase { private static List_users = new List { new UserItem(“Mack”), new UserItem(“Jack”) }; […]

The Evolution of Delegating Capabilities in .NET

Delegate in .NET Delegation in .NET is an important feature that enables indirect method invocation and functional programming. Since .NET Framework 1.0, delegates have supported multicast in .NET. With multicasting, we can invoke a series of methods in a single delegate call without maintaining the list of methods ourselves. Even today, delegated multicasting still plays […]

.NET Remoting A communication framework across application domains or across networks

.NET Remoting is a cross-application domain or cross-network communication framework that enables client applications to access and invoke objects in server-side applications. .NET Remoting is based on the classes and interfaces provided by the .NET Framework’s System.Runtime.Remoting namespace and its subnamespaces. Before learning .NET Remoting, we need to understand some basic concepts and components, as […]

xUnit.NET to .NET CORE test

xUnit.NET to .NET CORE test Original author of software craftsman Meaning XUNIT is a testing framework that can be tested against .net/core. Generally, the public method of the class is tested, that is, the behavior is tested. If it is a private method, the modifier needs to be changed to test. [External link picture transfer […]

Hash type and usage in .net core

Hash is an algorithm that converts data of arbitrary length into a fixed-length numeric value, also known as hashing or digesting. Hash can be used to ensure data integrity, verify digital signatures, generate passwords and other scenarios. In .NET Core, there are various types and usages of Hash algorithms, and this article will introduce some […]

.NET CORE configuration options — configuration

Configuration options represent two separate base frameworks: Configuration model The configuration of .NET Core is presented in the form of IConfiguration object in the process of being consumed by the application, so it is called configuration tree, and the name of the configuration tree reflects the configuration Logical structure. The raw data for the configuration […]

.NET CORE dependency injection

ASP.NET Core applications rely on various components to provide services during startup and subsequent request processing. In order to facilitate customization, these components are generally standardized in the form of interfaces, and we collectively call these standardized components “Service”. The entire ASP.NET Core framework is built on a low-level dependency injection framework, which uses the […]

ASP.NET Core Identity Series Eleven

In this section, we mainly introduce the password reset function. When a user forgets his password, he needs to choose to reset the password. It is very convenient to use ASP.NET Core Identity to reset the password. 1. ASP.NET Core Identity reset password Next, let’s take a look at how to reset the password in […]