Category:.NET

  • Several hosting methods of asp.net core

    Time:2020-4-2

    Kestrel Kestrel is a cross platform web server for asp.net core, which is included in the asp.net core project template by default. Kestrel supports the following scenarios: HTTPS Used to enable the opacity upgrade of websocket UNIX socket for getting high performance of nginx Http / 2 (except Mac OS †) Kestrel can be used […]

  • C ා implementation of binary sort tree code example

    Time:2020-4-2

    Binary sort tree, also known as binary search tree. It is either an empty tree or a binary tree with the following properties: If its left subtree is not empty. Then the values of all nodes on the left subtree are less than the following nodes If the right subtree is empty, all the nodes […]

  • An agile development practice of amateur project

    Time:2020-4-2

    This time, a user login permission control module is added to the original apitemplate project to verify how to abstract and support future expansion when facing some simple problems. The user login authority control module looks very simple, but its spare time is always limited. So take advantage of this opportunity to practice a user […]

  • C# generic

    Time:2020-4-2

    This article is from: https://www.cnblogs.com/netbatman/p/10374072.html What is generics? C and common language runtime (CLR) added generics in version 2.0. Generics introduce the concept of type parameters into the. Net framework so that classes and methods with the same characteristics can be designed: before client code declares and initializes these classes and methods, they delay specifying […]

  • Application practice of identity server 4 authorization center in ASP. Net core

    Time:2020-4-2

    I. Preface I have looked up most of the relevant materials. Most of the articles about identity server 4 are relatively simple and mostly written by the documents on the official website of translators. I am hereIn the application analysis of identityserver4 in ASP. Net core, we will use a common scenario in the process […]

  • Winfrom: a method to reduce redraw flicker of control

    Time:2020-4-2

    Double buffering of WinForm controls. The double buffered property of the control is hidden and its property value can be changed by reflection. Lv. Gettype(). Getproperty (“doublebeuffered”, bindingflags. Instance | bindingflags. Nonpublic). SetValue (LV, true, null); // LV is the control name   Turn on double buffering when redrawing a control. this.SetStyle(ControlStyles.DoubleBuffer | ControlStyles.UserPaint | […]

  • Steps to quickly build PDF documents in asp.net core share page 1 of 2

    Time:2020-4-1

    For example, we need to use PDF to develop some simple reports in asp.net core, which is not difficult, but we will still rush to search for some materials. Congratulations, this post will help you, and we will not waste some precious time. In this article, we will use dinktodfs to process our PDF documents […]

  • Two methods to realize the full screen of window in C

    Time:2020-4-1

    This paper shares the specific code of C ා to realize the full screen of the window for your reference. The specific content is as follows Method 1:However, there are some inexplicable bugs in this method //The program start path is in the same directory as the EXE file of the generated program public String […]

  • Redis cluster building ~ redis-x64-3.2.100

    Time:2020-4-1

    Reference documents: https://www.cnblogs.com/yaopengfei/p/12418227.html https://blog.csdn.net/weixin_42694286/article/details/92974535 https://blog.csdn.net/qq_42815754/article/details/82912130 https://blog.csdn.net/u010963948/article/details/78963572   1. Configure redis service Download redis-x64-3.2.100 in ZIP format, unzip it to the root directory of disk D, and then copy 6 configuration files, namely 6279 ~ 6384Download Directory: https://github.com/msopentech/redis/releases/ The contents of the main configuration file are as follows: take [redis. Windows-service6379. Conf] as an example, the […]

  • Use timer and observer mode of C ා to complete alarm push demand

    Time:2020-4-1

    Preface In the past two days, I interviewed a senior R & D company of Internet of things. The interview questions are as follows: Company leaders, department heads, group leaders and members are at level 4. If there is an early warning of epidemic situation, inform the group members (for individuals, there is mainly one […]

  • C memory cache learning notes

    Time:2020-4-1

    In many cases, we need to use cache. On the one hand, reasonable use of cache can improve the response speed of the program, and reduce the pressure of access to specific resources. In order to avoid every request to visit the background Generally, resources (such as databases) are considered to store the data that […]

  • Asp.net MVC core pipeline and interceptor

    Time:2020-4-1

    Let’s take a look at the execution pipeline of asp.net core today. First look at the official instructions:     It can be polished from the above figure. The execution sequence of asp.net core is that after receiving a request, the request request will first pass through the registered middleware, and then enter the interceptor […]