Embedd_0913
Embedd_0913

Reputation: 16565

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

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

Upvotes: 4

Views: 4538

Answers (3)

Jason
Jason

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

John Saunders
John Saunders

Reputation: 161821

I don't know that there's a way to do that. They're not centrally managed.

Upvotes: 1

marc_s
marc_s

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

Related Questions