예제 #1
0
        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();
        }
예제 #2
0
        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();
        }