private void startServices() { // Build a list of the "StartService"s and the "Adapter" services List <ServiceInfoType> allServices = new List <ServiceInfoType>(services); foreach (var adapter in adapterNames.Values) { if (adapter.ServiceConfig.Contract != null) { allServices.Add(adapter.ServiceConfig); } } // Start them all foreach (var service in allServices) { if (service.Contract != null) { Arbiter.Activate(DssEnvironment.TaskQueue, Arbiter.Choice <CreateResponse, Fault>( DssEnvironment.CreateService(service), delegate(CreateResponse success) { Console.WriteLine("* Created * " + success.Service); }, delegate(Fault failure) { Console.WriteLine("*** FAULT *** creating " + service.Service + ": " + failure.Reason); })); } } }