Code and Coder: about .net core, C#, Delphi, Codetyphon, Freepascal, C++,Python, website technical records

Posted in tag [.net core]



ASP.NET Core 3 File System [2]_ Overall Design

This abstract file system organizes files in the form of directories . We can use it to read the contents of a file , monitor the directory or files, and get notifications of changes in a timely manner . Since the IFileProvider object provides monitoring functions for file system transformations, similar functions in .NET Core are mostly implemented using an IChangeToken object, so it is necessary to first understand IChangeToken before going into the IFileProvider. I. IChangeToken The literally understood IChangeToken object is a "Token" ass...

ASP.NET Core 3 File System[1]_ Abstract _File System

ASP.NET Core applications have many scenarios for reading files, such as configuration files, static Web resource files (such as CSS, JavaScript, and image files) and View files for MVC applications, or even embedded resources directly compiled into assemblies. file. The reading of these files requires the use of an IFileProvider object. The IFileProvider object builds an abstract file system. We can not only use the unified API provided by it to read various types of files, but also monitor the changes of target files in time. First, the tree...

How to do health Check of DotNet Core

ASP.NET Core provides health check middleware and libraries for reporting the health of application infrastructure components. Health checks are exposed by the application as an HTTP endpoint. Health check endpoints can be configured for various real-time monitoring scenarios: Health probes can be used by the container business process coordination and load balancer to check the status of the application. For example, the container business process coordinator can respond to a failed health check by stopping the rolling deployment or rest...

ASP.NET Core 3.x Concurrency Limits

Foreword Microsoft.AspNetCore.ConcurrencyLimiter Added after AspNetCore3.0, used for incoming requests to be queued to avoid the lack of thread pool. In our daily development, we may often configure the number of connections to a web server and request queue size. Today we look at how to implement a concurrency and queue length limit through the middleware form. Queue policy Add Nuget Install-Package Microsoft.AspNetCore.ConcurrencyLimiter Copy public void ConfigureServices(IServiceCollection services) { servi...

How to use compressed middleware to improve web application performance with ASP.NET Core

Compression can greatly reduce the response speed of our web server, compression to improve the loading speed of our web pages, and save a certain amount of bandwidth.

How to mix dotNET Core 3.1 and C++ program

C++ and .net core 3.1 program

DotNET Core 3.0 Middleware

Middleware official website documentation: Middleware is a piece of software that is assembled into the application pipeline to handle requests and responses. Choose whether to pass the request to the next component in the pipeline. Work can be performed before and after the next component in the pipeline. Create a middleware pipeline using IApplicationBuilder The ASP.NET  Core request pipeline contains a series of request delegates, which are called in turn. The figure below illustrates this concept. Execute along the black arrow....

A jwt lightweight single API authorization using ASP.NET Core 3.0

A jwt lightweight single API authorization using ASP.NET Core 3.0

DotNet Core AA.FrameWork introduction

AA.FrameWork :a new dot net core framework

Preparation for .NET Core Migration

Why and how to migrate to .NET Core