public object Execute(IHaveBarcode haveBarcode) { lock (LockObject) { var count = Executor.GetHandler <GetNextCountHandler>().Process(h => h.Execute(NumberGenerator.Barcode)); haveBarcode.Barcode = count; } return(null); }
public void GenerateBarcode(IHaveBarcode haveBarcode) { haveBarcode.Barcode = Generate("Barcode"); }
public void Execute(IHaveBarcode haveBarcode) { var count = Executor.GetHandler <GetNextCountHandler>().Process(h => h.Execute(NumberGenerator.Barcode)); haveBarcode.Barcode = count; }