How can I to get list of all wcf services running on a machine?
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 a machine using the PerformanceCounterCategory class and getting all of the instances.
var category = new PerformanceCounterCategory("ServiceModelService 3.0.0.0", "machine name");
var instances = category.GetInstanceNames();
foreach (var instance in instances)
{
Console.WriteLine(instance);
}
You cannot - you need to know the services and their endpoints. There's no API to give you all running services on a given machine from the outside.
Marc
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With