当前位置:网站首页>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

原网站

版权声明
本文为[Microsoft technology stack]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/188/202207062338187567.html