C#SDK的最佳实践

C#SDK的最佳实践

本文介绍了架构可测试的iframe应用程序 - 与Facebook C#SDK的最佳实践的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在挣扎设定好了一个基本的架构,我的 ASP.NET MVC的Facebook iframe的应用程序,它是在 Windows Azure的

I am struggling in seting up a the basic architecture for my ASP.NET MVC Facebook iframe application which is running on Windows Azure.

我知道,有一些基本的样本,如何使用该工具包。但似乎对大的应用程序,我需要一个非常好的架构,开始与发展中国家。

I know that there are some basic samples, how to use the toolkit. But it seems that for big application i need a really good architecture to begin developing with.

也有很多其他的开发商似乎在建立这种基础架构的一个iframe ASP.NET MVC应用程序奋斗了。那么,为什么不收集所有可用信息,并在这里建立了像一个入门套件为构建复杂的Facebook iframe的应用程序

Also a lot of other developers seem to struggle in setting up this kind of basic architecture for an iframe ASP.NET MVC application, too. So why not gather all available information here and set up something like a starter kit for building complex facebook iframe applications

要求:

  • 在高度可测试(单元测试依赖注入是必须的)。
  • 在云端运行(但也可测试本地)
  • 支持本地调试
  • Highly testable (Unit Testing and Dependency Injection is a must).
  • Runs in Cloud (But also testable locally)
  • Supports local debugging

你如何建立一个架构,一个复杂的Facebook应用程序,它是可检验?是否有人已经拥有的基本架构下手?

How would you set up an architecture for an complex facebook application which is testable?Does somebody already have a basic architecture to start with?

所以实际上可以部分即将到来的问题在建立这样的架构是:

So acutally some of the upcoming questions during setting up such an architecture are:

  • 如何测试和调试该应用程序在本地(似乎有与Windows Azure的部分问题)?
  • 如何使用单元测试(Facebook和Windows Azure的零件需要更换以某种形式)?制定
  • ...

既然有这么多的开发者寻找这样的信息,让我们建立了一个入门套件为复杂的Facebook iframe的应用程序这是可扩展的云,但仍高度可测试在本地(我想下面的框架:新的Facebook C#SDK,AzureToolkit ,NUnit的和Ninject)。

Since there are so many developers searching for information like that let's set up a starter kit for complex facebook iframe applications which are scalable with cloud but still highly testable locally (I am thinking about the following frameworks: new Facebook C# SDK, AzureToolkit, NUnit and Ninject).

推荐答案

我是Facebook的C#SDK和AzureToolkit的主要开发人员和架构师。我们肯定希望改善以任何方式,我们可以。话虽这么说,很多人都在谈论的东西,如单元测试,本地调试,并在蔚蓝的建筑已经被支持。我们在同时使用Facebook的C#SDK和AzureToolkit并运行在Azure上非常高负荷环境下运行几个应用程序。其他的东西像嘲弄了Azure和Facebook的API都将是非常困难。如果您对我们如何能做到这一点的一些具体的想法,我很愿意听到他们的声音。开始使用这一点,最好的方法是创建Facebook的C#SDK的一个分支,并开始嘲笑了其中的一些东西。如果他们的工作,我们一定会接受他们回到了核心框架。

I am the primary dev and architect of the Facebook C# SDK and the AzureToolkit. We are definitely looking to improve in any way we can. That being said, many of the things you are talking about such as unit testing, local debugging, and building in azure are already supported. We have several apps running in very high load environments that use both the Facebook C# SDK and the AzureToolkit and run on Azure. The other stuff like mocking out Azure and the Facebook APIs are going to be really difficult. If you have some specific ideas on how we could do that, I would love to hear them. The best way to get started with this would be to create a fork of the Facebook C# SDK and start to mock up some of these things. If they work, we will definitely accept them back into the core frameworks.

这篇关于架构可测试的iframe应用程序 - 与Facebook C#SDK的最佳实践的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-06 21:07