.NET - 选择正确的转换服务 [英] .NET - choose correct service for conversion

查看:47
本文介绍了.NET - 选择正确的转换服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要一个简单的服务来执行下一步:


  1. 使用SDK转换某些文件;
  2. 调用Windows进程;
  3. 同步工作(只有一个活动线程);
  4. 从另一个服务器的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 。


https://forums.asp.net/1246。 ASPX / 1?的Web + API


I need a simple Service which will do the next:

  1. Use an SDK to convert some files;
  2. Call Windows processes;
  3. Work synchronous (only one active thread);
  4. 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.

https://forums.asp.net/1246.aspx/1?Web+API


这篇关于.NET - 选择正确的转换服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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