Example #1
0
        /// <summary>
        /// 获取Drink列表
        /// </summary>
        /// <returns></returns>
        public List <Drink> GetDrinkList()
        {
            CoffeeRemoteObject service = (CoffeeRemoteObject)Activator.GetObject(typeof(CoffeeRemoteObject), "Ipc://" + ServerIPCChannelName + "/RemoteObject.Coffee");

            return(service.GetDrinkList());
        }
Example #2
0
        /// <summary>
        /// 获取连接状态
        /// </summary>
        /// <returns></returns>
        public bool GetDrinkConnectStatus()
        {
            CoffeeRemoteObject service = (CoffeeRemoteObject)Activator.GetObject(typeof(CoffeeRemoteObject), "Ipc://" + ServerIPCChannelName + "/RemoteObject.Coffee");

            return(service.GetDrinkConnectStatus());
        }
Example #3
0
        /// <summary>
        /// 回调客户端开门
        /// </summary>
        /// <param name="drink"></param>
        public void OpenDoor(Drink drink)
        {
            CoffeeRemoteObject service = (CoffeeRemoteObject)Activator.GetObject(typeof(CoffeeRemoteObject), "Ipc://" + ServerIPCChannelName + "/RemoteObject.Coffee");

            service.OpenDoor(drink);
        }
Example #4
0
        /// <summary>
        /// 回调给客户端
        /// </summary>
        /// <param name="drink"></param>
        public void PushCallBack(Drink drink)
        {
            CoffeeRemoteObject service = (CoffeeRemoteObject)Activator.GetObject(typeof(CoffeeRemoteObject), "Ipc://" + ServerIPCChannelName + "/RemoteObject.Coffee");

            service.PushCallBack(drink);
        }
Example #5
0
        /// <summary>
        /// 冲饮料
        /// </summary>
        /// <param name="drinks"></param>
        public void MadeDrinks(WebInputArgs webInputArgs)
        {
            CoffeeRemoteObject service = (CoffeeRemoteObject)Activator.GetObject(typeof(CoffeeRemoteObject), "Ipc://" + ServerIPCChannelName + "/RemoteObject.Coffee");

            service.MadeDrinks(webInputArgs);
        }
Example #6
0
        /// <summary>
        /// 重置DrinkClient客户端
        /// </summary>
        public void ResetDrinkClient()
        {
            CoffeeRemoteObject service = (CoffeeRemoteObject)Activator.GetObject(typeof(CoffeeRemoteObject), "Ipc://" + ServerIPCChannelName + "/RemoteObject.Coffee");

            service.ResetDrinkClient();
        }