在C#中创建独立于技术的组件 [英] Creating technology independent component in C#

查看:83
本文介绍了在C#中创建独立于技术的组件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在C#中创建一个组件(例如财务模块),这些组件可以被用C#以外的其他语言编写的各种进程和网站使用(像Java,Perl,PHP等..)。什么应该是最好的方法?

I would like to create a component in C# (e.g. Finance modules) which can be used by various processes and web sites written in other languages than C#( like Java, Perl,PHP etc..). What should be the best approach?

我应该为此编写一个Web服务/ API吗?

Should I write an web service/API for this?

请建议最佳方法。

谢谢,

Sonali Das

Sonali Das

推荐答案

REST API是正确的选择。它是唯一可以与任何语言无缝使用的技术。如果该语言支持进行HTTP调用,那么它适用于REST。其他技术需要更多的工作或支持库
才能让他们使用非.NET平台。

A REST API is the correct choice here. It is the only technology that can be used seamlessly with just about any language. If the language supports making HTTP calls then it works with REST. Other technologies either require more work or support libraries to get them to play with non-.NET platforms.

请在ASP.NET中发布与REST API相关的更多问题< a href ="http://forums.asp.net">
论坛。

Please post further questions related to REST APIs in the ASP.NET forums.

Michael Taylor

http:// www.michaeltaylorp3.net

Michael Taylor
http://www.michaeltaylorp3.net


这篇关于在C#中创建独立于技术的组件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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