如何启用 WCF 服务以使用 .NET Core RC2?
How to enable WCF Service to use .NET Core RC2?
我有一个使用 .NET 4 构建的遗留 WCF 服务。5.x
我需要做什么才能让它使用 .NET Core?
任何答复将不胜感激。
Writing WCF services on .Net Core is currently not supported:
Providing WCF Server support for .NET Core is on the radar.
As you know, our current POR is to provide the WCF client-side libraries in .NET Core to enable UWP/ ASP.NET Core/.NET Core applications to call .NET Framework based WCF Services.
我想这不是您要找的东西,但您可能会发现它很有用。
dotnetcorersi是dotnet核心框架中基于TCP的远程服务调用解决方案。
托管您的服务
// Initialize new instance of RemoteServiceContainer
var container = new RemoteServiceContainer();
// Register MyCustomService as IMyCustomService
container.RegisterService(typeof(IMyCustomService), new MyCustomService());
// Open connection
container.Open(serverIp, port);
在客户端初始化服务代理
// Create instance of ServiceChannel
var servicesChannel = new ServiceChannel(serverIp, port);
// Generate remote service proxy
var proxy = servicesChannel.GetRemoteService<IMyCustomService>();
使用您的服务
// Do some work in the server context
proxy.DoSomething();
我有一个使用 .NET 4 构建的遗留 WCF 服务。5.x
我需要做什么才能让它使用 .NET Core?
任何答复将不胜感激。
Writing WCF services on .Net Core is currently not supported:
Providing WCF Server support for .NET Core is on the radar.
As you know, our current POR is to provide the WCF client-side libraries in .NET Core to enable UWP/ ASP.NET Core/.NET Core applications to call .NET Framework based WCF Services.
我想这不是您要找的东西,但您可能会发现它很有用。
dotnetcorersi是dotnet核心框架中基于TCP的远程服务调用解决方案。
托管您的服务
// Initialize new instance of RemoteServiceContainer
var container = new RemoteServiceContainer();
// Register MyCustomService as IMyCustomService
container.RegisterService(typeof(IMyCustomService), new MyCustomService());
// Open connection
container.Open(serverIp, port);
在客户端初始化服务代理
// Create instance of ServiceChannel
var servicesChannel = new ServiceChannel(serverIp, port);
// Generate remote service proxy
var proxy = servicesChannel.GetRemoteService<IMyCustomService>();
使用您的服务
// Do some work in the server context
proxy.DoSomething();