wcf - 使用.net core使现有的WCF服务在Linux上运行

标签 wcf asp.net-core asp.net-core-mvc .net-core

我对 .net core 完全陌生。

我的任务是在 Linux 上运行 WCF 服务。 我的 WCF 服务是使用 .NET Framework 4 构建的。 我在 IIS 中托管我的服务。

您能否为我提供正确的指导,以处理以下问题,

  1. 我需要对当前的 WCF 服务进行哪些更改才能在 Linux 上运行它?

  2. 我需要什么版本的 Linux 才能使其与 .net core 一起使用?

  3. 目前,我在 IIS 中托管我的服务,如何在 Linux 中托管它,因为我们有大约 40 个服务。

    我在互联网上发现,在控制台应用程序中托管WCF服务,是否有更好的托管方式,因为我有40多个服务。

最佳答案

.Net Core 1.0不支持编写WCF服务器,只支持连接到它们的客户端。 The README of the WCF repository说:

WCF service applications should still be created with the full .NET Framework version.

微软正在考虑在未来添加对 WCF 服务器的支持,但目前还不确定。来自 a post on the WCF repository自 2016 年 7 月 16 日起:

We have reviewed all the great responses above in regards to WCF Server support in .NET Core.

The WCF feature team is actively working on roadmap plans for WCF functionality in future .NET Core releases. For next steps, we need your feedback in terms of top scenarios, feature usage and target profiles.

然后链接到 a survey .

关于wcf - 使用.net core使现有的WCF服务在Linux上运行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38553203/

相关文章:

wcf - 在 Linux 上托管 WCF 服务

authentication - ASP Core 3 React模板,登录后HttpContext.User.IsAuthenticated()返回False

c# - 如何为 IdentityServer4 Entity Framework 核心迁移指定架构?

C# WCF插件设计与实现

c# - 无法将 WCF 行为扩展添加到端点行为

c# - ASP.NET Core 2.1 将 json 列表传递给 ajax

url-rewriting - ASP.CORE 2.0 中的 SEO url 重写

azure - 如何在 Azure 中允许 URL 编码路径段

c# - ASP.NET Core 中间件向 Controller 传递参数

c# - 在使用后立即在 WCF ChannelFactory<T> 和 T channel 对象上调用 dispose 有多重要?