Category:ASP.NET
-
Detailed analysis of dotnet # monitor in. Net # 6 #
catalogue I What is dotnet monitor II introduction . net cli tools Container mirroring III HTTP API IV trigger V feedback Original text:Announcing dotnet monitor in .NET 6 We first launched dotnet monitor as an experimental tool in June 2020 and worked hard to turn it into a production level tool last year (2020). Today, […]
-
Using vs2022 in ASP Net core
catalogue 1. Use vs2022 to create ASP Net core project In asp.2 Net core enables a lightweight service 3. In ASP Net core using iendpointconventionbuilder extension method 4. In ASP Net core using lightweight services to retrieve records 5. In ASP Net core using lightweight services to create records 6. In ASP Net core using […]
-
ASP. Net core uses fixed window to limit current
catalogue Algorithm principle Algorithm implementation In process memory fixed window algorithm Redis based fixed window algorithm Algorithm application 1. Install nuget package 2. Using middleware Algorithm principle Fixed window algorithm, also known as counter algorithm, is a simple current limiting algorithm. Set a threshold value and a count value in the unit time. Each time […]
-
ASP. Net # core using sliding window to limit current and scenario analysis
catalogue Algorithm principle Missed inspection Taigang Algorithm implementation In process memory sliding window algorithm Redis based sliding window algorithm Application algorithm 1. Install nuget package 2. Using middleware The sliding window algorithm is used to deal with the uneven distribution of requests in the time cycle, and can deal with traffic changes more accurately. The […]
-
Solve ASP Net # core using leaky bucket algorithm to limit current
catalogue Algorithm principle Algorithm implementation In process memory leaky bucket algorithm Redis based leaky bucket algorithm Application algorithm 1. Install nuget package 2. Using middleware Leaky bucket algorithm is one of the four mainstream algorithms for current limiting. Its application scenarios are not introduced in various materials. Generally, it is applied in network flow control. […]
-
. net # core # API interface JWT authentication token
1、 Project > manage nuget package installation 2、 appsettings. JSON add “JWT”: { “Secret”: “~! @#$% ^ & * () qwertyuiopasldkh[o51485421ajshk ^% *) Kasd”, // key “Issuer”: “kfjdhf”, // issuer “Audience”: “kfjdhf”, // receiver //”Expired”: 30 // expiration time (30min) } 3、 Configureservices injection JWT #Region register JWT //Get profile var JWTConfig = Configuration.GetSection(“JWT”); //Generate […]
-
Implementation of color gradient animation effect of. Net , and raspberry pie , light band
In the last hydrology article, Lao Zhou demonstrated the basic use of ws28xx. At the end of the article, Lao Zhou said that this article introduces the simple implementation of color gradient animation. Before we start, let’s make a digression. The first thing is that the price of raspberry pie has soared recently. I believe […]
-
use. A graphic verification code function implemented by net core
Simplecaptcha is a simple to use, based on Net standard 2.0 graphic verification code module. It was inspired by EDI Wang’s article https://edi.wang/post/2018/10/13/generate-captcha-code-aspnet-core , I extracted the code that generated the verification code and encapsulated it to get this module. Here’s how to use it. Basic usage Install simplecaptcha Search nuget for installing simplecaptcha Install […]
-
asp. Net using Ajax file upload plug-in to upload files (with source code)
ajaxFileUpload. JS many of the same name, because it’s easy to make one. I use this:https://github.com/carlcarl/AjaxFileUpload Download address here:http://xiazai.jb51.net/201701/yuanma/ajaxfileupload(jb51.net).rar AjaxFileUpload. JS is not a very famous plug-in, but what others have written is put out for everyone. The principle is to create hidden forms and iframes, and then submit them with JS to obtain the […]
-
Asp. NetCore3. 1. Upgrade the open source project to Net6. Method implementation of 0
catalogue summary demand Current solutions summary summary since. Net6. After 0 came out, I always wanted to upgrade the previously developed project Net6. 0, sometimes think about it. After all, there is a version 5.0 in the middle. I don’t know how big the upgrade is. Recently, I took time to do some research on […]
-
Configuration and use of some common components of. Net6
Software architecture It is divided into model layer, service layer and interface layer for testing 0. How to use iconfiguration and environment It is directly used in the host after the builder. builder.Configuration; builder.Environment 1. How to use swagger Swagger has been added to the built-in template of. Net 6 by default. You can use […]
-
use. Webapplication in net6 creates the smallest API
. net6 brings us a new API in preview4: webapplication, through which we can build smaller lightweight API services. Today, let’s try how to design a small API service system using webapplication. Environmental preparation .NETSDK v6.0.0-preview.5.21355.2 Visual Studio 2022 Preview First, take a look at the original version of webapplication. The official has provided a […]