Exemplo n.º 1
0
        public void SubscribeEvent()
        {
            this.controllerCallback = OperationContext.Current.GetCallbackChannel <IControllerCallback>();
            //
            messageSendEvent += this.controllerCallback.NewPilotRequest;
            //

            messageAddToList      += this.controllerCallback.AddToListMessage;
            messageAbort          += this.controllerCallback.AbortMessage;
            messageRemove         += this.controllerCallback.RemoveMessage;
            messageDocked         += this.controllerCallback.DockedMessage;
            messageStandardUpdate += this.controllerCallback.RegularUpdate;
        }
Exemplo n.º 2
0
        public void UnSubscribeEvent()
        {
            if (this.controllerCallback != null)
            {
                //
                messageSendEvent -= this.controllerCallback.NewPilotRequest;
                //

                messageAddToList      -= this.controllerCallback.AddToListMessage;
                messageAbort          -= this.controllerCallback.AbortMessage;
                messageRemove         -= this.controllerCallback.RemoveMessage;
                messageDocked         -= this.controllerCallback.DockedMessage;
                messageStandardUpdate -= this.controllerCallback.RegularUpdate;

                this.controllerCallback = null;
            }
        }
Exemplo n.º 3
0
 public void setControllerCallback(IControllerCallback controller_callback)
 {
     _controller_callback = controller_callback;
 }