Exemple #1
0
        protected void onJobWarning(GearmanJobData e)
        {
            EventHandler <GearmanJobData> handler = JobWarning;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Exemple #2
0
        protected void onJobException(GearmanJobData e)
        {
            EventHandler <GearmanJobData> handler = JobException;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Exemple #3
0
        protected void onJobCompleted(GearmanJobData e)
        {
            EventHandler <GearmanJobData> handler = JobCompleted;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Exemple #4
0
 private static void onComplete(Object e, GearmanJobData data)
 {
     Console.WriteLine("Job {0} complete!  Result: {1}", data.JobHandle, Encoding.UTF8.GetString(data.Data));
 }
 protected void onJobWarning(GearmanJobData e)
 {
     EventHandler<GearmanJobData> handler = JobWarning;
     if (handler != null)
     {
         handler(this, e);
     }
 }
 protected void onJobException(GearmanJobData e)
 {
     EventHandler<GearmanJobData> handler = JobException;
     if (handler != null)
     {
         handler(this, e);
     }
 }
 protected void onJobCompleted(GearmanJobData e)
 {
     EventHandler<GearmanJobData> handler = JobCompleted;
     if (handler != null)
     {
         handler(this, e);
     }
 }