.NET - 选择正确的转换服务 [英] .NET - choose correct service for conversion
问题描述
我需要一个简单的服务来执行下一步:
- 使用SDK转换某些文件;
- 调用Windows进程;
- 同步工作(只有一个活动线程);
- 从另一个服务器的WCF服务调用;
我想选择此服务(Web API2,WCF,WebSocket等)将很容易支持并将使用< g class =" gr_ gr_19 gr-alert gr_gramm gr_inline_cards gr_run_anim Grammar multiReplace"数据-GR-ID =" 19 QUOT; ID = QUOT 19 QUOT;>少< / g取代;
资源。你会选择什么?
谢谢!
您正在讨论的每个解决方案,就像托管它们的内容一样,Web服务器是一种多线程解决方案,因为它们运行在多线程托管技术的Web服务器上。
你必须自己在解决方案中实现单一模式。
https://dzone.com/articles/understanding-and-implementing-singleton-pattern-i
最容易使用的是WebAPI 。
I need a simple Service which will do the next:
- Use an SDK to convert some files;
- Call Windows processes;
- Work synchronous (only one active thread);
- Call from a WCF service in another Server;
I want to select this service (Web API2, WCF, WebSocket, etc.) which will be easy to support and will use <g class="gr_ gr_19 gr-alert gr_gramm gr_inline_cards gr_run_anim Grammar multiReplace" data-gr-id="19" id="19">less</g> resources. What will you choose?
Thank you!
Each solution you are talking about as far as what is hosting them, a Web server , is a multi-threaded solution due to them running on a Web server that is a multi-threaded hosting technology.
You'll have to implement the single pattern yourself in the solution.
https://dzone.com/articles/understanding-and-implementing-singleton-pattern-i
The easiest to use is WebAPI.
这篇关于.NET - 选择正确的转换服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!