Inheritance: System.Configuration.ConfigurationElement
        protected GearmanConnectionManager(ClusterConfigurationElement clusterConfiguration)
            : this()
        {
            if (clusterConfiguration == null)
                throw new ArgumentNullException("clusterConfiguration");

            ParseConfiguration(clusterConfiguration);
        }
Ejemplo n.º 2
0
 public GearmanThreadedWorker(ClusterConfigurationElement clusterConfiguration)
     : base(clusterConfiguration)
 {
     _workLoopThread = new Thread(WorkLoopThreadProc);
 }
 private void ParseConfiguration(ClusterConfigurationElement cluster)
 {
     foreach (ServerConfigurationElement server in cluster.Servers)
     {
         AddServer(server.Host, server.Port);
     }
 }