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
https://github.com/hwqdt/Catcher.Finance
The Practice of .NET Cross-Platforms的更多相关文章
- C++ development cross platforms
1. target platforms: linux suse, windows server, both use vmware virtual machine on lab server. 2. c ...
- [Erlang 0114] Erlang Resources 小站 2013年7月~12月资讯合集
Erlang Resources 小站 2013年7月~12月资讯合集,方便检索. 附 2013上半年盘点: Erlang Resources 小站 2013年1月~6月资讯合集 小站地 ...
- 什么是Cocos2d-x
以下是官方对Cocos2d-x的说明." Cocos2d-x is an open-source mobile 2D game framework, released under ...
- Chapter 6 - How to Play Music and Sound Effect
In this chapter, we would add background music to the game and play sound effect when the hero fires ...
- 通过HTML5的getUserMedia实现拍照功能
参考HTML5Rocks的这篇文章实现的一个简单的例子. 思路如下: 1. 把冰箱门打开 2. 把大象放进冰箱里 3. 把冰箱门关上 好了不开玩笑了,其实思路是: 1. 通过getUserMedia调 ...
- Cross Site Request Forgery (CSRF)--spring security -转
http://docs.spring.io/spring-security/site/docs/3.2.0.CI-SNAPSHOT/reference/html/csrf.html 13. Cross ...
- Computer Graphics Principles And Practice (James Foley / Andries Van Dam / Morgan McGuire / David Sklar / James D. Foley 著)
1 Introduction 2 Introduction to 2D Graphics Using WPF 3 An Ancient Renderer Made Modern 4 A 2D Grap ...
- XSS CSS Cross SiteScript 跨站脚本攻击
XSS攻击及防御 - 高爽|Coder - CSDN博客 https://blog.csdn.net/ghsau/article/details/17027893 XSS又称CSS,全称Cross S ...
- Comparing Xamarin and Delphi XE5 to Xcode for Cross Platform Mobile App Development
Comparing Xamarin and Delphi XE5 to Xcode for Cross Platform Mobile App Development If you are consi ...
- aarch64 cross compile 交叉编译 opencv
需求 : linux host : UBUNTU opencv source : opencv 3.3.1.zip CMAKE : apt-get install cmake cmake-qt- ...
随机推荐
- vue组件编译原理
<body> <my-com1 type="type" v-pre="pre">com1</my-com1> <my- ...
- 用rem实现WebApp自适应的优劣分析
关于rem实现屏幕自适应布局的讨论还是比较多的,刚好我也看到使用rem实现自适应的web app,所以也来凑下热闹. 说起rem,免不了要联系到em.px,这里简单提提他们的定义和特点. 1. px: ...
- 在.NET中使用反射实现简易插件机制
本篇是我学习反射的一个应用小场景而做的学习笔记,主要是一个小的总结,并对各个步骤的记录,以便将来回顾. 一.基础框架-敏捷基础版本 这里假定我们要开发一个记事本,选择Windows Form技术开发, ...
- Google分布式构建软件之一:获取源代码
本文原文在google开发者工具组的博客上[需要FQ],以下是我的翻译,欢迎转载,但尊重作者版权,注名原文地址. 在Google,所有的产品都是在主干上开发的.这样的好处:每个人都可以查看和修改代码, ...
- this的安身之处
在JavaScript的大千世界中,this对象就像一个行踪不定.居无定所的浪子一般,它的生活仿佛可以随处而安,而内心却又似有着笃定的坚守,它就是这么有趣! 初学JavaScript时的我们,多多少少 ...
- 使用ViewPager+Fragment实现选项卡切换效果
实现效果 本实例主要实现用ViewPage和Fragment实现选项卡切换效果,选项卡个数为3个,点击选项卡或滑动屏幕会切换Fragment并实现选项卡下方下边框条跟随移动效果. 本程序用androi ...
- Atitit事件代理机制原理 基于css class的事件代理
Atitit事件代理机制原理 基于css class的事件代理 1.1. 在javasript中delegate这个词经常出现,看字面的意思,代理.委托1 1.2. 事件代理1 1.3. 代理标准化规 ...
- uwp 图片切换动画
最近在学习安卓,LOL自定义战绩项目近乎停工,而且腾旭把界面全改了,好烦.刚好学习到安卓中的图片切换动画,我就想在LOL项目中实现一个.首先上百度查看一下,妈的,资料少的可怜. 还是自己来吧.自定义控 ...
- nodejs+edatagrid读取本地excel表格
- Unity事件
unity3d事件函数整理,事件,回调函数,消息处理 Unity3D中所有控制脚本的基类MonoBehaviour有一些虚函数用于绘制中事件的回调,也可以直接理解为事件函数,例如大家都很清楚的Star ...