Walking into a Task: what is a Task

preface This series will be divided into the following articles and described in stages: What is a Task (this article) Callback execution of Task and await (TODO) What did async do (TODO) Summary and common misunderstandings (TODO) In 2, I will share deadlock related issues with you. 2 and 3 will be interspersed with customized Awaitable top ...

Posted by larrygingras on Wed, 19 Jan 2022 19:45:40 +0100

. Net WebApi naming convention

HTTP Service development guide of elephant doctor company 1. Webapi interface implementation specification 1.1 several implementations of get method 1.1.1 basic realization // GET: api/v1/Products/1455ebe0-832b-46c5-8772-b9483d947a63 /// <summary> ///Get specific products /// </summary> ///< param name = &quo ...

Posted by renzaho on Wed, 19 Jan 2022 19:34:39 +0100

Abp vnext EFCore implements dynamic context DbSet

background When we use the EFCore framework to operate the database, we will encounter a large number of context "DbSet < > to be written in" xxDbContext "; It's acceptable for us to have fewer watches. When there are many watches, we have to write a DbSet for each table. A large number of dbsets is just like a painful thi ...

Posted by cx3op on Wed, 19 Jan 2022 16:22:56 +0100

[MAUI] in NET MAUI combined with Vue to realize hybrid development

​ In MAUI, Microsoft's official solution is to use Blazor for development, but most Web projects in the current market are built using Vue, React and other technologies. If we can't bypass the accumulated technologies, it's unrealistic to rewrite the whole project with Blazor. Vue is a popular web framework. In short, it is a set of template en ...

Posted by evilcoder on Wed, 19 Jan 2022 00:38:26 +0100

. net core -- compiling C# code with roslyn

catalogue Introduction to Rosyln Compile c# text as dll in real time 1. Add the PreserveCompilationContext configuration 2. Reference package 3. Get the compilation reference dll by using {DependencyContext} Complete example Reference test library summary Footnotes   Introduction to Rosyln Rosyln1{yes NET Core and NET 4.6 +, which ...

Posted by John_S on Tue, 18 Jan 2022 15:15:41 +0100

prism8 for wpf study notes

What is Prism? Prism is a framework for building loosely coupled, maintainable, and testable XAML applications in WPF and Xamarin Forms. Prism provides the implementation of a set of design patterns. These patterns help to write well structured and maintainable XAML applications, including MVVM, dependency injection, command, EventAggregat ...

Posted by patheticsam on Sat, 15 Jan 2022 00:17:51 +0100

MASA Framework - EventBus design

summary The publish subscribe mode is used to decouple different architecture levels, and can also be used to isolate the interaction between businesses advantage: loose couplingcrosscutting concern Testabilityevent driven Publish subscribe mode The publisher sends the message to the subscriber through the dispatching center. The dispat ...

Posted by NathanLedet on Fri, 14 Jan 2022 13:39:09 +0100

Control inversion IOC dependency injection di Autofac note

Theoretical basis of DI rely on What is dependency? In short, it is the relationship between classes. Class dependency occurs when a class needs another class to work together This dependency between classes is coupling. We can't eliminate the coupling (unavoidable), but we can make this coupling dependency clear and easy to manage through D ...

Posted by bluntster on Thu, 13 Jan 2022 17:55:56 +0100

Mycat as a small knowledge point of proxy server

I preface Mycat exposes services in the form of a Server, and its main configuration class is Server XML, this article mainly focuses on some small details, mainly including: Server. How to load XML Configuration and role in Server Flow of Server in connection request II Server.xml configuration 2 ...

Posted by htcilt on Thu, 13 Jan 2022 07:18:11 +0100

Calling web APIs using JavaScript

In this section, you will add an HTML page that contains a form for creating and managing to-do items. Event handlers are attached to elements on the page. The event handler causes an HTTP request to be made to the operation method of the Web API. The {fetch} function of the Fetch API starts each HTTP request. The fetch # function returns Promi ...

Posted by HairBomb on Wed, 12 Jan 2022 07:16:52 +0100