当前位置:网站首页>An example of multi module collaboration based on NCF
An example of multi module collaboration based on NCF
2022-07-07 05:41:00 【Microsoft technology stack】
brief introduction
The content brought to you this time is based on NCF Multi module collaboration instance . The main content of today's article is NCF Module Xncf Call each other 、 The ability to work together .
Here we can put Xncf Compared to LEGO toys , One Xncf Is the type of LEGO toys you have , For example, you have a set of LEGO toys to build a house , You also have a set of LEGO toys for building airplanes and cars . The collaboration of so many modules is like you build a part with the toys that build the house , If you want to build a garage in the house , Then put the built car in the car LEGO toy directly into the garage of the house , perfect match , No, I won't feel out of place , Because their specifications are consistent .
Step Abrupt
NCF summary
NCF setup script
NCF Docs
NCF Demonstration of running module
NCF Demonstration of interface operation
NCF Demonstration of cases
NCF Management of modules under different modules
NCF Increase of interfaces under different modules
NCF Mutual calls under different modules
MAUI A brief introduction
MAUI Operation and installation of
NCF combination MAUI Of Demo demonstration
real Shi
▌NCF summary
About NCF Overview , We have talked about many chapters , The detailed content , Please move : About NCF.
▌NCF setup script
About NCF setup script , Please move :NCF First run installation
▌NCF Docs
Official documents :Docs
▌NCF Demonstration of running module
After successful login , You will see that the module management under the extension module contains many new modules found .
Click Install module , It will show whether the module needs to be turned on , After opening , Then the functions of the module are all opened to the enabled state .
▌NCF Demonstration of interface operation
We use visual Swagger plug-in unit , take web api The interface of is displayed
After the interface call is completed , What is displayed is the data format returned by the interface , You can put it on the application you need according to your needs
▌NCF Demonstration of cases
This case is a small case we made , If interested in experience , You can search in wechat applet “ Inflamed circle ”( Tips : Need personal information to register , Please choose ), This small program is completely used NCF make .
▌NCF Management of modules under different modules
Today's focus is on , Several different modules are installed into the project at the same time
You can see the picture above , The installed module contains 2 A module , One is the platform management module, and the other is DotnetDay modular
From the code structure of the project, it looks like this
The actual situation shown by the backend is like this
Click add product , You can see the form information of the new product
There is an edit operation at the end of each line , Click to pop up the edited form page
▌NCF Increase of interfaces under different modules
This is open platform management v1 Version of the interface
This is a DotnetDay Modular v3 The interface of
▌NCF Mutual calls under different modules
Let's take the uploaded pictures of new products for example , We take DotnetDay The commodity management module under the module calls 【 Platform management 】 Next v1 The interface of , It can prove whether the mutual calls between modules are successful
The above figure shows the result of the call , We see that the upload calls v1 Interface upload , That means 【DotnetDay modular 】 And 【 Platform module 】 Call each other , And it worked .
in summary ,Xncf It gives developers great possibilities , So that you can code in your way , Write application , Write function .
▌MAUI A brief introduction
.NET Multi-platform application UI (.NET MAUI) It's a cross platform framework , For the use of C# and XAML Create native mobile and desktop apps .
Use .NET MAUI, Can be developed in a single shared code base Android、iOS、macOS and Windows Applications running on .
.NET MAUI It's open source. , yes Xamarin.Forms The evolution of , Expand from mobile solutions to desktop solutions ,UI Control is regenerated from scratch , In order to achieve performance and scalability . If used before Xamarin.Forms Generate a cross platform user interface , You will notice that .NET MAUI There are many similarities . But there are also some differences . Use .NET MAUI, You can use a single project to create multi platform applications , But if necessary , You can add platform specific source code and resources ..NET MAUI The main goal of is to realize as much application logic and... As possible in a single code base UI Layout .
▌MAUI Operation and installation of
install MAUI front , You have to install dotnet 7 preview, Otherwise, there is no way to run successfully
So here I'm going to choose Windows Operation platform
Of course , He also supports Android,IOS Simulator, etc
If you haven't Android Simulator , You can try to create a new one
Add the device specifications you want
After adding , Show
Run show
▌NCF combination MAUI Of Demo demonstration
We combine NCF And MAUI Go to show the list function of the product
MAUI There is a new button to enter the application , Click to enter the page of product list , When NCF When the data in commodity management changes
MAUI After entering the application , Will show the following , That's it MAUI And NCF The combination of
There are many more interesting functions , I hope to explore with you NCF The future of ...
Reference material
NCF Warehouse address :
https://github.com/NeuCharFramework/NCF
NCF Doc Warehouse address :
https://github.com/NeuCharFramework/NcfDocs
Microsoft's most valuable expert (MVP)
Microsoft's most valuable expert is a global award awarded by Microsoft to third-party technology professionals .29 Over the years , Technology community leaders around the world , Won this award for sharing expertise and experience in its online and offline technology communities .
MVP It's a strictly selected team of experts , They represent the most skilled and intelligent people , He is an expert who puts great enthusiasm into the community and is willing to help others .MVP Committed to speaking 、 Q & a forum 、 Create a website 、 Blogging 、 Share video 、 Open source project 、 Organize meetings to help others , And help Microsoft technology community users to use Microsoft technology .
For more details, please visit the official website :
https://mvp.microsoft.com/zh-cn
Focus on Microsoft China MSDN Learn more about
边栏推荐
- Message queuing: how to ensure that messages are not lost
- Web architecture design process
- 随机生成session_id
- Educational Codeforces Round 22 B. The Golden Age
- 导航栏根据路由变换颜色
- Egr-20uscm ground fault relay
- Taobao Commodity details page API interface, Taobao Commodity List API interface, Taobao Commodity sales API interface, Taobao app details API interface, Taobao details API interface
- 张平安:加快云上数字创新,共建产业智慧生态
- 不同网段之间实现GDB远程调试功能
- SQL query: subtract the previous row from the next row and make corresponding calculations
猜你喜欢
How Alibaba cloud's DPCA architecture works | popular science diagram
WEB架构设计过程
High voltage leakage relay bld-20
[JS component] date display.
基于NCF的多模块协同实例
分布式事务解决方案之TCC
MySQL数据库学习(8) -- mysql 内容补充
CentOS 7.9 installing Oracle 21C Adventures
JVM (19) -- bytecode and class loading (4) -- talk about class loader again
集群、分布式、微服务的区别和介绍
随机推荐
Two person game based on bevy game engine and FPGA
Preliminary practice of niuke.com (9)
How Alibaba cloud's DPCA architecture works | popular science diagram
Egr-20uscm ground fault relay
JVM (19) -- bytecode and class loading (4) -- talk about class loader again
《4》 Form
5. Data access - entityframework integration
“多模态”概念
分布式事务解决方案之2PC
K6el-100 leakage relay
In memory, I moved from CSDN to blog park!
Digital innovation driven guide
说一说MVCC多版本并发控制器?
JVM (XX) -- performance monitoring and tuning (I) -- Overview
论文阅读【Semantic Tag Augmented XlanV Model for Video Captioning】
R语言【逻辑控制】【数学运算】
架构设计的五个核心要素
Lombok plug-in
Cve-2021-3156 vulnerability recurrence notes
If you want to choose some departments to give priority to OKR, how should you choose pilot departments?