Ejemplo n.º 1
0
        public void DispatchCall(Call call)
        {
            var             employeeToHandle = free.Dequeue();
            MakeCallCommand command          = new MakeCallCommand(call, employeeToHandle);

            command.Execute();
        }
Ejemplo n.º 2
0
        public void TakeCall(Call call)
        {
            // get person based on escalation priority
            // assign to call
            Random random           = new Random();
            var    employeeToHandle = avalEmpl[random.Next(avalEmpl.Count - 1)];

            while (employeeToHandle != null && employeeToHandle.OnCall)
            {
                employeeToHandle = employeeToHandle.Boss;
            }

            MakeCallCommand command = new MakeCallCommand(call, employeeToHandle);

            command.Execute();
        }