.NET 4.5.xで構築された従来のWCFサービスがあります.NET Core RC2を使用するWCFサービスを有効にする方法?
.NETコアを使用するには何が必要ですか?
返信いただければ幸いです。
.NET 4.5.xで構築された従来のWCFサービスがあります.NET Core RC2を使用するWCFサービスを有効にする方法?
.NETコアを使用するには何が必要ですか?
返信いただければ幸いです。
Writing WCF services on .Net Core is currently not supported:.NETのコアのためのWCF Serverのサポートを提供
はレーダーにあります。
われわれの現在のPORは、.NETコアにWCFクライアントサイドライブラリを提供して、UWP/ASP.NETコア/ .NETコアアプリケーションが.NET FrameworkベースのWCFサービスを呼び出すことができるようにすることです。
私はそれがあなたが探しているものではないと思いますが、それが役に立つかもしれません。
dotnetcorersiは、ドットネットコアフレームワークにおけるリモートサービス呼び出しのための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();
を使用しますが、このSO [解答](HTTPを見てきました:/ /stackoverflow.com/a/37609795/745969)[WCF Connected Service Visual Studio拡張プレビューfor ASP.NET 5プロジェクト](https://blogs.msdn.microsoft.com/webdev/2015/12/15/wcf-connected-service-visual-studio-extension-preview-for-asp-net-5-projects/)? – Tim
VS 2015の拡張機能は、ASP.NET MVC 5 WebプロジェクトにWCF connetedサービスへの参照を追加するのに役立ちます。しかし、従来のWCFプロジェクトを.NET COREを使用するWCFプロジェクトにアップグレードまたは変換することはありません –