Category:.NET Core

  • Step by step Vue + element front end application development (32) — Mobile SMS dynamic code login processing

    Time:2021-9-18

    In some systems, sometimes users forget their password and can realize the system login function by sending dynamic verification code to their mobile phone. This essay introduces how to combine the processing of SMS sending and caching module of back-end ABP framework to realize SMS dynamic code login processing. The general login methods are divided […]

  • Step by step Vue + element front end application development (33) — mail parameter configuration and template mail sending processing

    Time:2021-9-17

    In system processing, it is sometimes necessary to send e-mail to notify users, such as e-mail confirmation of new users, password retrieval, and routine subscription messages, notifications and other content processing, which can be processed by e-mail. This essay introduces how to realize the mail parameter configuration management of the system and send mail based […]

  • Tail tooth coat

    Time:2021-9-16

    Five reading modes Five reading methods depend on  IConfiguration  and  IConfigurationRoot  object 1、 Primary writing //Case insensitive   string connectionString = _ configuration[“ConnectionString”]; 2、 Binding configuration model var config = new Config01(); _configuration.Bind(config); 3、 Partial binding //Websetting is a sub object of config. Var websetting = new websetting(); _configuration.GetSection(“WebSetting”).Bind(webSetting); 4、 Register services for configuration options […]

  • Jsonconsole in asp.net core 5.0

    Time:2021-9-14

    Jsonconsole in asp.net core 5.0 Intro New log in asp.net core 5.0JsonConsole, or output log toConsole, but it will be appliedJsonOne of the formatsFormatterFormat the log into JSON and output it to the console Sample Let’s take a look at an example. Take a small project of mine as an example to demonstrate that the […]

  • ASP. Net core 3.1 getting started with real-time application signalr

    Time:2021-9-13

    Reference article: Microsoft official document: https://docs.microsoft.com/zh-cn/aspnet/core/signalr/introduction?view=aspnetcore -3.1 and https://www.cnblogs.com/cgzl/p/9509207.html   series Introduction to asp.net core signalr What is signalr? Asp.net core signalr is an open source library that simplifies the ability to add real-time web functionality to applications.  Real time Web capabilities enable server-side code to immediately push content to the client. For signalr: Applications […]

  • Pagoda panel mounting paper case CMS

    Time:2021-9-12

    Installing nginx To run paper-based CMS on Linux, nginx needs to be used as the reverse proxy to reverse proxy all requests to the paper-based CMS program for processing. First, install nginx in the software store on the pagoda panel:   Select the version to install, select Install 1.18 here, and then click submit to […]

  • Portal

    Time:2021-9-11

    The configuration method of aspnet core multi environment is based on the startup class. WebBuilder. Usestartup() / / explicitly register and target startup.cs webBuilder.UseStartup(Assembly.GetExecutingAssembly().FullName); // Multi environment writing method: select the class based on the agreed name according to the environment variables There are two other methods, which are not described in detail here. It […]

  • Changes in Ocelot Middleware

    Time:2021-9-10

    Changes in Ocelot Middleware Intro When we used Ocelot, we customized some middleware to meet our customized needs. Recently, a little partner in the blog asked me how to use it. He used version 16.0. The difference between versions 16.0 and 17.0 is not very large. Let’s take version 17.0 as an example to see […]

  • Asp.net core developer’s Guide

    Time:2021-9-9

    1 Introduction Asp.net core developer’s Guide RoadmapIt points out the direction for the learning of our asp.net core developers. According to the roadmap, I have sorted out some reading notes, learning experiences and other article materials in the learning process, hoping to make common progress with you. The codes used in this article are:https://github.com/zcqiand/aspnetcore-guide 2 […]

  • Release selenium chromedriver.exe from memory

    Time:2021-9-8

    background I set up a c# code to run selenium chromedriver.exe. At the end of the run, I have browser. Close () to close the instance( Browser = webdriver. Chrome ()) I believe it should release chromedriver.exe from memory (I’m on Windows 7). However, after each run, there is still an instance of chromedriver.exe in […]

  • The. Net core handles webapi JSON and returns annoying null and empty

    Time:2021-9-7

    preface In project development, annoying nulls will be encountered in both the foreground and background. If the fields in the database table allow null values, the corresponding field type in the code entity class is nullable < >, such as int?, DateTime?, The values returned from the serialization of null value fields are null. The […]

  • Asp.net core uploads files to a shared folder

    Time:2021-9-6

    reference material:Asp.net upload files to shared folders Create shared folder reference:https://www.cnblogs.com/dansediao/p/5712657.html 1、 Configure relevant parameters of uploaded files and read parameters 1. Configure appsettings.json { “FileUploadInfo”: { “UploadPath”: “\\\\172.21.0.10\\File”, “DownloadPath”: “http://213.10.11.126:8001/”, “UserName”: “ShareUser”, “Password”: “Password” } } 2. Read configuration data 2.1 create a new entity class   /// ///File upload configuration item /// public […]