Category:.NET
-
Time:2021-3-8
I recently found a problem that our application did not execute correctly when the application was shut downIHostedServiceInStopAsyncmethod. After repeated verification, it is found that this is due to the fact that it takes too long for some services to respond to the shutdown signal. In this article, I’ll show an example of this problem […]
-
Time:2021-3-8
Grpc is very popular recently. I feel that the whole RPC can’t keep up with the fashion without grpc. Grpc design Grpc is a high performance language independent framework for remote procedure call (RPC). Just need to use a RPC application system, naturally focus on it, but can it really solve all the problems? Not […]
-
Time:2021-3-8
Regular expressions in. Net are Perl 5-based regular expressions. overtime Starting with. Net framework 4.5, regular expressions support specifying timeouts in matching operations. If the match times out, a regexmatchtimeoutexception is thrown. Overload with timeout parameter is added to all methods public static Match Match(string input, string pattern, RegexOptions options, TimeSpan matchTimeout); public static MatchCollection […]
-
Time:2021-3-8
In the past, most of the projects used MySQL database. Recently, the project schedule was a little bit free. The leader decided to migrate the log module to mongodb, which has better insert / query performance. It took a lot of effort to write multi condition query. Write an article to record it 1、 Preparation […]
-
Time:2021-3-7
This example for you to share the unity novice guide hollow effect of the specific code, for your reference, the specific content is as follows 1、 Realization idea Create a mesh with 8 vertices, and the inner and outer boundaries are quadrangles (rectangles). Only the mesh between the inner and outer edges is generated, and […]
-
Time:2021-3-6
No matter how powerful ORM is, there will always be some special circumstances, it can not meet our requirements. In this article, we introduce several ways to execute SQL. Table structure Before we start, let’s briefly describe the table structure to be used. public class Category { public int CategoryID { get; set; } public […]
-
Time:2021-3-6
Definition and classification of design patterns definition Design pattern: design pattern is a kind of summary of code design experience, and it is also a technology of documenting the solutions of design problems in software system. Using design patterns can reuse code, make it easier for others to understand and improve the reliability of code. […]
-
Time:2021-3-6
A few days ago, when I was wandering on the Internet, I came across a question and its answer According to the thread safety knowledge, this paper analyzes the following code, whether it will cause deadlock when I > 10 when calling the test method, and briefly explains the reasons. public void test(int i) { […]
-
Time:2021-3-6
In the past two days, I debugged the.NET Core application in Linux. At the same time, I found that debugging.NET Core application in Linux is not easy. I am used to coding and debugging in visual studio. Now I want to test. Net core application in Linux simply and quickly. Therefore, through this article, we […]
-
Time:2021-3-5
Ppt introduction Directory: The status quo of industrial Internet Platform introduction technology roadmap human resources Practical problems Cost center The development of industrial Internet Two driving engines Changes in user needs One sided and extreme From point to surface, the combination of point and surface breakthrough Realistic path foothold How to build industrial Internet One […]
-
Time:2021-3-5
design goal Design software with high maintainability and reusability. Maintainability refers to the difficulty of software being understood, modified, applicable and extended, while reusability refers to the difficulty of software being reused Classification of design principles Principle of single responsibility definition Single responsibility principle (SPR): it is better for a class to be responsible for […]
-
Time:2021-3-5
In the past two days, we have realized the mask and hollowed out shader effect that novices need to guide. Let’s record it. 1. Round hollow shader code: //The distance between the world coordinates of the element and the center position of the target is calculated float dis = distance(IN.worldPosition.xy, _Center.xy); //The elements whose distance […]