/// <summary> /// This method actually performs the work of starting the virtual service /// </summary> /// <param name="srvItem">The XElement that contains the service information.</param> private void StartVirtualService(VirtualServiceBase virService) { Console.WriteLine("\tStarting Service: " + virService.ServiceName); // Call the service start virService.Start(); // Create a new service host var svcHost = new ServiceHost(virService); svcHost.Open(TimeSpan.FromSeconds(5)); // Add the service to the hash table _virServices.Add(virService.ServiceName, svcHost); Console.WriteLine("\tService Started Successfully"); }