public PredefinedNetworkService(NetworkServiceRegistryEntry service, bool isEnabled)
        {
            if (service == null)
            {
                throw new ArgumentNullException("service");
            }

            m_service = service;
            m_isEnabled = isEnabled;
        }
 private static void RegisterNetworkService(string guidString, string name, Protocol protocol, string description, ushort port)
 {
     var guid = Guid.Parse(guidString);
     var service = new NetworkServiceRegistryEntry(guid, name, protocol, description, port);
     EntriesInternal.Add(guid, service);
 }