如何使用MEF和&amp ;;实现可插拔的mvc应用程序Autofac [英] How to implement an pluggable mvc application with MEF & Autofac

查看:137
本文介绍了如何使用MEF和&amp ;;实现可插拔的mvc应用程序Autofac的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先,英语不是我的语言,请忘记我的语言错误。



我的想法:



- 如何将业务逻辑&ui分离到多个dll

- 如何在主机应用程序运行时插入/拔出应用程序插件

- 如何构建一些共享dll for(Script,UI control,css)



所以,这是我的想法,但是如果你有更好的想法,请与我分享。



我不太喜欢编程,请帮我解决我的考试问题。



谢谢。

注意

First thing's first, English is not my language, please forget my language mistakes.

My idea:

- How to separate business logic & ui to multi dll
- How to plug/unplug application plugin when host application is running
- How to Building some share dll for (Script, UI control, css)

So, that's my idea, but if you got an better one, please share it with me.

I'm not so good about programming, please help me solve my problem with your exam.

Thank you.
Regard

推荐答案

步骤1)做一点研究。谷歌是一个很好的起点

步骤2)开始编码

步骤3)编译并使用调试来解决小问题

步骤4)当你遇到问题时你不知道如何解决但至少你试过了,然后回来问一些具体的代码片段给出了问题



很抱歉,如果这不是你想要的答案。但你的问题有点太宽,无法在快速答案中得到解答。如果你对具体问题提出10个具体问题,那就更好了,你得到更快的帮助,而不是一个关于操作指南的大问题





PS写作解决方案,以避免这个问题在未答复的列表中



评论后添加的其他信息

谷歌搜索:独立的业务和ui模式

有趣的结果:

http://stackoverflow.com/questions/3117809/separating-ui-and-logic-in-c-sharp [ ^ ]

http://discuss.joelonsoftware.com/default.asp?design.4.42658.11 [<一个href =http://discuss.joelonsoftware.com/default.asp?design.4.42658.11target =_ blanktitle =新窗口> ^ ]

< a href =http://visualstudiomagazine.com/articles/2014/05/01/separating-the-ui-code-from-the-business-code.aspx> http://visualstudiomagazine.com/articles/2014 / 05/01 /分离-the-ui-code-from-business-code.aspx [ ^ ]



谷歌搜索:共享dll c#

有趣的结果:

http:// support2。 microsoft.com/kb/815065/en-us [ ^ ]

https://cygwin.com/cygwin-ug -net / dll.html [ ^ ]

http://programmers.stackexchange.com/questions/141391/creating-a-shared-library-that-might-be-used-with-desktop-applications-and-web-p [ ^ ]

http://msdn.microsoft.com/en-us/library/windows/desktop/ms686958(v = vs.85).aspx [ ^ ]

http://weblogs.asp.net/mnolton/5823 [ ^ ]





我知道这些链接并不完全符合您的需求,但它们是调查和学习概念的良好开端。之后你将有足够的背景,开始以一种专家高兴回答的方式开始询问你真正需要知道的内容。
Step 1) Do a little research. Google is a good start point
Step 2) Start coding
Step 3) Compile and use the debug to solve little issues
Step 4) When you get a problem you don't know how to solve but at least you tried it, then come back and ask for something concrete with a snippet of the code giving problems

Sorry if this is not the answer you were looking for. But your question is a bit too wide to be answered at the "Quick" Answers. It is better and you get faster help if you make 10 concrete questions about concrete problems, than a big question about a "how-to guide"


P.S. Written as solution to avoid this "question" to be in the unanswered list

additional information added after comment
Googling: "separate business and ui model"
Interesting results:
http://stackoverflow.com/questions/3117809/separating-ui-and-logic-in-c-sharp[^]
http://discuss.joelonsoftware.com/default.asp?design.4.42658.11[^]
http://visualstudiomagazine.com/articles/2014/05/01/separating-the-ui-code-from-the-business-code.aspx[^]

googling: "shared dll c#"
interesting results:
http://support2.microsoft.com/kb/815065/en-us[^]
https://cygwin.com/cygwin-ug-net/dll.html[^]
http://programmers.stackexchange.com/questions/141391/creating-a-shared-library-that-might-be-used-with-desktop-applications-and-web-p[^]
http://msdn.microsoft.com/en-us/library/windows/desktop/ms686958(v=vs.85).aspx[^]
http://weblogs.asp.net/mnolton/5823[^]


I know that the links are not exactly what you need, but they are a good start point to investigate and learn concepts. Afterwards you will have enough background to start asking what you really need to know in a way that the experts here will be glad to answer.


这篇关于如何使用MEF和&amp ;;实现可插拔的mvc应用程序Autofac的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆