How to get a list of all wcf services running on a machine?

How can I get a list of all the wcf services running on a machine?

+3
source share
3 answers

You cannot - you need to know the services and their endpoints. There is no API for providing you with all running services on this machine from the outside.

Mark

+3
source

I know this is a very old question, but just in case someone comes across this and needs an answer, you can get a list of services on the machine using the PerformanceCounterCategory class and get all instances.

var category = new PerformanceCounterCategory("ServiceModelService 3.0.0.0", "machine name");
var instances  = category.GetInstanceNames();

foreach (var instance in instances)
{
    Console.WriteLine(instance);
}
+10
source

, . .

+1

Source: https://habr.com/ru/post/1711985/


All Articles