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. LogStash-2.4.0自定义区域信息插件-ISP

    由于直接复制粘贴有问题,所以给出链接: http://note.youdao.com/share/?id=6dfb1f03240e156c1db4a56c85e3b6db&type=note# ...

  2. iphone使用mac上的SOCKS代理

    Step 1. Make sure the SOCKS tunnel on your work computer allows LAN connections so your iPhone/iPod ...

  3. ASP.NET Core 文件上传

    前言 上篇博文介绍了怎么样在 asp.net core 使用 Redis 和 Protobuf 进行 Session缓存.本篇的是开发过程中使用的一个小功能,怎么做单文件和多文件上传. 如果你觉得对你 ...

  4. 解读ASP.NET 5 & MVC6系列(3):项目发布与部署

    本章我们将讲解ASP.NET5项目发布部署相关的内容,示例项目以我们前一章创建的BookStore项目为例. 发布前的设置 由于新版ASP.NET5支持多版本DNX运行环境的发布和部署,所以在部署之前 ...

  5. [史上最全]C#(VB.NET)中位运算符工作过程剖析(译)

    原文地址CodeProject 目录 介绍 “二进制-十进制”相互转换 十进制->二进制 二进制->十进制 OR运算符(按位或|) OR运算符工作方式 FlagsAttribute AND ...

  6. 日志系统实战(二)-AOP动态获取运行时数据

    介绍 这篇距上一篇已经拖3个月之久了,批评自己下. 通过上篇介绍了解如何利用mono反射代码,可以拿出编译好的静态数据.例如方法参数信息之类的. 但实际情况是往往需要的是运行时的数据,就是用户输入等外 ...

  7. [公告]Senparc.Weixin v4.7.0 升级说明(2016-08-08)

    本次升级包含了除QY以外所有的类库,升级内容包括: 1.重构Conatainer结构,删除 ItemCollection 属性,直接使用ContainerBag加入到缓存: 2.重构IContaine ...

  8. 生成lua的静态库.动态库.lua.exe和luac.exe

    前些日子准备学习下关于lua coroutine更为强大的功能,然而发现根据lua 5.1.4版本来运行一段代码的话也会导致 "lua: attempt to yield across me ...

  9. js中的块作用域

    今天我们来一起研究下JavaScript中的变量作用域问题,话不多说,直接上代码. <script type="text/javascript"> (function( ...

  10. KnockoutJS 3.X API 第七章 其他技术(1) 加载和保存JSON数据

    Knockout允许您实现复杂的客户端交互性,但几乎所有Web应用程序还需要与服务器交换数据,或至少将本地存储的数据序列化. 最方便的交换或存储数据的方式是JSON格式 - 大多数Ajax应用程序今天 ...