public Waiting(Client client, SupportService supportService) { _client = client; _supportService = supportService; client.Status = ClientStatus.Wating; _timer = new DispatcherTimer { Interval = TimeSpan.FromSeconds(1) }; _timer.Tick += FindOperator; _timer.Start(); }
public Connection(Operator oper, Client client, SupportService supportService) { _operator = oper; _client = client; _supportService = supportService; _client.CurrentOperatorId = _operator.OperatorId; _operator.CurrentClientId = _client.ClientId; _operator.Status = false; _client.Status = ClientStatus.Connected; _sessionTimer = new DispatcherTimer { Interval = TimeSpan.FromSeconds(1) }; _sessionTimer.Tick += SessionTimerTick; _sessionTimer.Start(); }