Пример #1
0
        public Teller(UIHelper uiHelper, CancellationToken ct, Bank b)
        {
            this.uiHelper = uiHelper;
            this.cancelToken = ct;
            this.bank = b;
            this.customerGoalAmount = uiHelper.GetCustomerGoalAmount();     // a bit of a hack

            task = Task.Factory.StartNew(TellerProc, cancelToken);
            uiHelper.AddTellerStartedMessage(task.Id);
        }