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. 使用 OWIN Self-Host ASP.NET Web API 2

    Open Web Interface for .NET (OWIN)在Web服务器和Web应用程序之间建立一个抽象层.OWIN将网页应用程序从网页服务器分离出来,然后将应用程序托管于OWIN的程序而离 ...

  2. ABP理论学习之事件总线和领域事件

    返回总目录 本篇目录 事件总线 定义事件 触发事件 处理事件 句柄注册 取消注册 在C#中,我们可以在一个类中定义自己的事件,而其他的类可以注册该事件,当某些事情发生时,可以通知到该类.这对于桌面应用 ...

  3. 我的面板我做主 -- 淘宝UWP中自定义Panel的实现

    在Windows10 UWP开发平台上内置的XMAL布局面板包括RelativePanel.StackPanel.Grid.VariableSizedWrapGrid 和 Canvas.在开发淘宝UW ...

  4. 在C#代码中应用Log4Net(一)简单使用Log4Net

    首先让我们先把Log4Net跑起来,示例代码在文章最后面可以下载 1.先把Log4Net引入到工程中,为了演示方便,我们先建立一个winform程序.在程序的根目录下面,建立一个Libs文件夹,以便存 ...

  5. Android Studio自动删除多余的import

    在开发过程中,随着项目的迭代,文件内部分import 可能早已经不用了,对于这种无用的 import,我们不可能一个一个文件的删除.这里记录个自动删除无用import的功能. 一 .开发环境: And ...

  6. meta标签中的http-equiv属性使用介绍(转载)

    meta是html语言head区的一个辅助性标签.也许你认为这些代码可有可无.其实如果你能够用好meta标签,会给你带来意想不到的效果,meta标签的作用有:搜索引擎优化(SEO),定义页面使用语言, ...

  7. MongoDB 安装和可视化工具

    MongoDB 是一款非常热门的NoSQL,面向文档的数据库管理系统,官方下载地址是:MongoDB,博主选择的是 Enterprise Server (MongoDB 3.2.9)版本,安装在Win ...

  8. SSISDB5:Parameter

    Parameter 是Package 提供给外界的接口,通过传递不同的Parameter value,能够动态控制 Package 执行不同的Task或container,产生不同的结果. 一,Par ...

  9. SSIS的 Data Flow 和 Control Flow

    Control Flow 和 Data Flow,是SSIS Design中主要用到的两个Tab,理解这两个Tab的作用,对设计更高效的package十分重要. 一,Control Flow 在Con ...

  10. Enterprise Solution 虚拟测试环境

    在不联网的情况下,一台物理电脑安装数据库服务,VMware创建多个虚拟机,虚拟机中多个客户端并发连接到物理主机.可共用同一个物理主机的数据库,也可以测试多用户并发等问题. 1  安装微软虚拟网卡.在控 ...