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); } }
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); } }