Wcf: ServiceHost class unavailable on .Net Core 2.0

Created on 12 Feb 2018  路  5Comments  路  Source: dotnet/wcf

Hi,

I'm searching a lot of ways on the web and among the available Nuget packages, to implement ServiceHost and I found quite nothing, neither in the documentation...

Is it possible to obtain a code/package which ServiceHost class is implemented for .Net Core 2.0?

How can we resolve this problem otherwise?

Thank you for your time.

Most helpful comment

If ServiceHost is not available on .NET Core, how to host a WCF Service in a console app?

All 5 comments

@apdirexyon, WCF has only client support on .NET Core. The ServiceHost is a server feature, which is not supported on .NET Core. The readme of this repo has a bit details of targeted scenarios etc.

and you guys tell me that you won't port ServiceHost to .net core because it is 'legacy'. https://www.erikheemskerk.nl/revisited-benchmark-wcf-webapi-aspnetcore-mvc/
phew

If ServiceHost is not available on .NET Core, how to host a WCF Service in a console app?

If ServiceHost is not available on .NET Core, how to host a WCF Service in a console app?

You can use a 3rd party lib called SoapCore.

Was this page helpful?
0 / 5 - 0 ratings