Ejemplo n.º 1
0
        /// <summary>
        /// Indicate a chnage in an order/request change of status or order
        /// </summary>
        /// <param name="requestId"></param>
        /// <param name="statusId"></param>
        /// <param name="progress"></param>
        public void PublishMachineChange(int requestId, int statusId, int progress, string state)
        {
            MachineChangeEventArgs e = new MachineChangeEventArgs();

            e.RequestId = requestId;
            e.StatusId  = statusId;
            e.Progress  = progress;
            e.State     = state;
            MachineChangeEvent(this, e);
        }
Ejemplo n.º 2
0
        //This event handler runs when a PriceChange event is raised.
        //The client's PriceChange service operation is invoked to provide notification about the price change.

        public void MachineChangeHandler(object sender, MachineChangeEventArgs e)
        {
            callback.MachineChange(e.RequestId, e.StatusId, e.Progress, e.State);
        }