当前位置:网站首页>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
边栏推荐
- Mybaits multi table query (joint query, nested query)
- 淘宝商品详情页API接口、淘宝商品列表API接口,淘宝商品销量API接口,淘宝APP详情API接口,淘宝详情API接口
- MySQL数据库学习(8) -- mysql 内容补充
- Flink SQL 实现读写redis,并动态生成Hset key
- Digital innovation driven guide
- 什么是消息队列?
- How to get free traffic in pinduoduo new store and what links need to be optimized in order to effectively improve the free traffic in the store
- Nodejs get client IP
- sql查询:将下一行减去上一行,并做相应的计算
- Five core elements of architecture design
猜你喜欢

2pc of distributed transaction solution

Differences and introduction of cluster, distributed and microservice

Design, configuration and points for attention of network unicast (one server, multiple clients) simulation using OPNET

How does mapbox switch markup languages?

京东商品详情页API接口、京东商品销量API接口、京东商品列表API接口、京东APP详情API接口、京东详情API接口,京东SKU信息接口

Leakage relay llj-100fs

Leetcode: maximum number of "balloons"
![[JS component] custom select](/img/9d/f7f15ec21763c40b9bb6a053d90ee4.jpg)
[JS component] custom select

Life experience of an update statement
![Paper reading [open book video captioning with retrieve copy generate network]](/img/13/12567c8c2cea2b2a32051535389785.png)
Paper reading [open book video captioning with retrieve copy generate network]
随机推荐
Taobao store release API interface (New), Taobao oauth2.0 store commodity API interface, Taobao commodity release API interface, Taobao commodity launch API interface, a complete set of launch store i
Writing process of the first paper
京东商品详情页API接口、京东商品销量API接口、京东商品列表API接口、京东APP详情API接口、京东详情API接口,京东SKU信息接口
什么是消息队列?
JVM (XX) -- performance monitoring and tuning (I) -- Overview
"Multimodal" concept
When deleting a file, the prompt "the length of the source file name is greater than the length supported by the system" cannot be deleted. Solution
Egr-20uscm ground fault relay
JSP setting header information export to excel
分布式全局ID生成方案
一条 update 语句的生命经历
5. 数据访问 - EntityFramework集成
Preliminary practice of niuke.com (9)
Record a pressure measurement experience summary
Message queuing: how to ensure that messages are not lost
C#可空类型
Différenciation et introduction des services groupés, distribués et microservices
Two person game based on bevy game engine and FPGA
Dj-zbs2 leakage relay
Most commonly used high number formula