The Practice of .NET Cross-Platforms
0x01 Preface
This post is mainly to share the technologies on my practice about the .NET Cross-Platforms.
If you had watched my first top post,you will know most of technologies uesd in my practice.Now,
I will Introduce the detials about this. Ready to go? Let's start!
0x02 What I am using
1. Xamarin
Using the Xamarin to build the mobile Apps,such as the Android app and the IOS app.but in
my practice,I only completed the Android app,the IOS app didn't complete yet,Ohm..because I do
not hava a Mac,I can't compiler the application.
2. Universal Windows Platform(UWP)
Using the UWP to build the App of Windows Phone mobile or Windows . Due to my busy job,I can't
complete it as well . I am learning the Encrypt and Decrypt Algorithms on the UWP , there are some
differents between UWP and other situation,such as the namespace,the dealing method.
3. NancyFx
Using the NancyFx to build the manage website and the data service website.The manage website
is hosting with aspnet and the data service website is hosting with owin.
4. MongoDB(Migrated from MS SQL Server)
At first,I use the MS SQL Server as my database , but I think it is not suitable for a little application .
So I migrated the database from MS SQL Server to MongoDB.And I use RobThree's MongoRepository to
Operate the MongoDB. It's very convenient to use MongoRepository like the Entity Framework , but there
are some differents between them.
0x03 How do I do
Let's look at the below picture first.
There are two websites : one is the data service,providing the services for the mobile,
the other one is the manage website,managing the data of this system.
The more detials are as follow:
I use two Virtual Machines to host the Data Service and the Manage website.The Operation
System of both two Virtual machines is CentOS.
For the Data Service,I depoly it with the TinyFox . The Data Service is based on the NancyFx
and OWIN,why I choose this combination? RESTful , RESTful , RESTful .This combination do
well in it . You can try this combination in your project.
For the Manage Website,I depoly it with the Jexus . The Manage Website is based on the NancyFx
Hosting with asp.net.So, there is no doubt that I will choose the Jexus for the Server.
If you do not hava any ideas of Jexus and the TinyFox , you can find them in http://linuxdot.net/
And what about the database?
I use my own compute to host the MongoDB.I build a service for MongoDB so that makes it easy to use.
Completed the above step, all of the things are done.At this time, the apps can run successfully.
0x04 What I am thinking about the next
Using the Xamarin to build the Navite Apps is a very good things,we can do everything like
the Navite Android and the IOS.Xamarin.Android and the Xamarin.IOS can do those work for us .
And I think the Xamarin.Forms may more suitable for what I do . And there are some problems
when I use the Xamarin.Forms . For everything , the best way may not exist , but the suitable way do exist .
Using the NancyFx to build the data service and the manage website will not change.I konw
the asp.net core rtm will Release soon,but I still do not want to use it now. The NancyFx team is also working hard .
The Cross-Platforms is very nice.
This is the first time for me to use the english to write a post, so many oral english here. Please forgive me and
my mistakes on this post.
And I am ready to find a new job after finishing all of my tasks . Maybe one month or a little more . If your company need
a developer not on time , you can Contact with me.
At last,the source code

【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 周边上新:园子的第一款马克杯温暖上架
· Open-Sora 2.0 重磅开源!
· 分享 3 个 .NET 开源的文件压缩处理库,助力快速实现文件压缩解压功能!
· Ollama——大语言模型本地部署的极速利器
· [AI/GPT/综述] AI Agent的设计模式综述