Reputation: 16565
How can I to get list of all wcf services running on a machine?
Upvotes: 4
Views: 4538
Reputation: 199
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);
}
Upvotes: 13
Reputation: 161821
I don't know that there's a way to do that. They're not centrally managed.
Upvotes: 1
Reputation: 755321
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
Upvotes: 3