Наследование: IQueuePlanCallback
Пример #1
0
        private QueuePlanCallback CreateQueuePlanCallback()
        {
            var result = new QueuePlanCallback();
            result.OnClientRequestUpdated += OnClientRequestUpdated;
            result.OnCallClient += OnCallClient;

            return result;
        }
        public AutoRecoverQueuePlanChannel(QueuePlanCallback callback, Action<IQueuePlanTcpService> subscribeFunc)
        {
            ServiceLocator.Current.GetInstance<IUnityContainer>().BuildUp(this);

            this.callback = callback;
            this.subscribeFunc = subscribeFunc;

            timer = new Timer();
            timer.Interval = 1000;
            timer.Elapsed += PingElapsed;
            timer.Start();
        }
Пример #3
0
        public HomePageViewModel() :
            base()
        {
            WorkplaceTitle = Workplace.ToString();
            WorkplaceComment = Workplace.Comment;

            callbackObject = new QueuePlanCallback();
            callbackObject.OnCurrentClientRequestPlanUpdated += CurrentClientRequestPlanUpdated;

            queuePlanChannel = QueuePlanChannelManager.CreateChannel(callbackObject);

            BuildUpTimer();

            currentRequests = new ObservableCollection<ClientRequestWrapper>();

            LoadedCommand = new RelayCommand(Loaded);
            UnloadedCommand = new RelayCommand(Unloaded);
        }
Пример #4
0
        public OperatorForm()
            : base()
        {
            InitializeComponent();

            queuePlanCallback = new QueuePlanCallback();
            queuePlanCallback.OnCurrentClientRequestPlanUpdated += queuePlanCallback_OnCurrentClientRequestPlanUpdated;
            queuePlanCallback.OnOperatorPlanMetricsUpdated += queuePlanCallback_OnOperatorPlanMetricsUpdated;

            qualityCallback = new QualityCallback();

            taskPool = new TaskPool();
            taskPool.OnAddTask += taskPool_OnAddTask;
            taskPool.OnRemoveTask += taskPool_OnRemoveTask;

            taskPool.OnAddTask += taskPool_OnAddTask;

            pingTaskPool = new TaskPool();

            pingServerTimer = new Timer();
            pingServerTimer.Elapsed += pingServerTimer_Elapsed;

            pingQualityTimer = new Timer();
            pingQualityTimer.Elapsed += pingQualityTimer_Elapsed;

            qualityPanelDeviceId = CurrentOperator.Workplace.QualityPanelDeviceId;
        }