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

            ParseConfiguration(clusterConfiguration);
        }
예제 #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);
     }
 }