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的更多相关文章

  1. C++ development cross platforms

    1. target platforms: linux suse, windows server, both use vmware virtual machine on lab server. 2. c ...

  2. [Erlang 0114] Erlang Resources 小站 2013年7月~12月资讯合集

    Erlang Resources 小站 2013年7月~12月资讯合集,方便检索.     附 2013上半年盘点: Erlang Resources 小站 2013年1月~6月资讯合集    小站地 ...

  3. 什么是Cocos2d-x

    以下是官方对Cocos2d-x的说明."       Cocos2d-x is an open-source mobile 2D game framework, released under ...

  4. 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 ...

  5. 通过HTML5的getUserMedia实现拍照功能

    参考HTML5Rocks的这篇文章实现的一个简单的例子. 思路如下: 1. 把冰箱门打开 2. 把大象放进冰箱里 3. 把冰箱门关上 好了不开玩笑了,其实思路是: 1. 通过getUserMedia调 ...

  6. 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 ...

  7. 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 ...

  8. XSS CSS Cross SiteScript 跨站脚本攻击

    XSS攻击及防御 - 高爽|Coder - CSDN博客 https://blog.csdn.net/ghsau/article/details/17027893 XSS又称CSS,全称Cross S ...

  9. 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 ...

  10. aarch64 cross compile 交叉编译 opencv

    需求 : linux host :  UBUNTU opencv source : opencv 3.3.1.zip CMAKE  :  apt-get install cmake cmake-qt- ...

随机推荐

  1. C#与Java对比学习:类型判断、类与接口继承、代码规范与编码习惯、常量定义

    类型判断符号: C#:object a;  if(a is int) { }  用 is 符号判断 Java:object a; if(a instanceof Integer) { } 用 inst ...

  2. 借助 Lucene.Net 构建站内搜索引擎(上)

    前言:最近翻开了之前老杨(杨中科)的Lucene.Net站内搜索项目的教学视频,于是作为老杨脑残粉的我又跟着复习了一遍,学习途中做了一些笔记也就成了接下来您看到的这篇博文,仅仅是我的个人笔记,大神请呵 ...

  3. IE10,11下_doPostBack未定义错误的解决方法

    出现的原因 .NET2.0和.NET4.0一起发布的浏览器定义文件中有一个错误,它们保存相当一部分浏览器版本的定义.但是浏览器的有些版本(比如IE10,11)则不再在这个范围之内.因此,ASP.NET ...

  4. 在VMWare中建立Hadoop虚拟集群的详细步骤(使用CentOS)

    最近在学习Hadoop,于是想使用VMWare建立一个虚拟的集群环境.网上有很多参考资料,但参照其步骤进行设置时却还是遇到了不少问题,所以在这里详细写一下我的配置过程,以及其中遇到的问题及相应的解决方 ...

  5. ASP.NET Web API的Controller是如何被创建的?

    Web API调用请求的目标是定义在某个HttpController类型中的某个Action方法,所以消息处理管道最终需要激活目标HttpController对象.调用请求的URI会携带目标HttpC ...

  6. 基于GIS的旅游辐射区人口统计

    在旅游规划中,考虑旅游景点周边的人口负载量是很重要的一个方面,这将直接影响资源的投入和配置,开发潜力和规模等.基于GIS可以将人口信息进行空间化的展示,还可以通过空间分析的方法计算出旅游景点辐射区的人 ...

  7. EDM制作要点

    EDM是Email Direct Marketing的缩写,虽然也是html,但是和我们在网页上使用的html不同,因为安全原因,各大邮箱服务商级邮件客户端都会对邮件内容进行一定程度上的处理,不会按照 ...

  8. css垂直居中那点事

    这是我技术博客生涯的第一篇文章,想想还是有点小鸡冻...菜鸟的征程现在要开始了 学习css的时候经常被各种问题纠结到不要不要的,没办法,只能写写博客帮助整理一下自己的思绪和帮助一下和我遇到同样问题的小 ...

  9. 《像计算机科学家一样思考Java》—— 读后总结

    本书属于入门级的Java书籍,与其他的向编程思想.核心技术不同的是,这本书不是按部就班的讲解java变成知识,而是随着语言的深入慢慢增加知识点. 这本书以一个语言开发者的角度,深入浅出的讲解了Java ...

  10. angularjs controller 继承

    前沿 最近在angularjs项目当中,看到 controller 好多都是重复性的代码,在 controller 当中有好多代码很相似 function(比如 controller 下的 CRUD ...