Пример #1
0
        public object Execute(IHaveBarcode haveBarcode)
        {
            lock (LockObject)
            {
                var count = Executor.GetHandler <GetNextCountHandler>().Process(h => h.Execute(NumberGenerator.Barcode));
                haveBarcode.Barcode = count;
            }

            return(null);
        }
Пример #2
0
 public void GenerateBarcode(IHaveBarcode haveBarcode)
 {
     haveBarcode.Barcode = Generate("Barcode");
 }
Пример #3
0
        public void Execute(IHaveBarcode haveBarcode)
        {
            var count = Executor.GetHandler <GetNextCountHandler>().Process(h => h.Execute(NumberGenerator.Barcode));

            haveBarcode.Barcode = count;
        }