Exemple #1
0
        private void AddToQueue(IDestinationInfo destinationInfo, List <NotificationPayloadBase> payloads)
        {
            PusherQueue pusherQueue;

            if (!this.pusherQueues.TryGetValue(destinationInfo.Destination.Authority, out pusherQueue))
            {
                pusherQueue = (this.pusherQueues[destinationInfo.Destination.Authority] = this.CreatePusherQueue(destinationInfo));
            }
            pusherQueue.Enqueue(payloads, destinationInfo.ChannelIds);
        }
Exemple #2
0
        private new void UpdateDestination(IDestinationInfo destination)
        {
            mDestinationDescription.Caption        = destination.Description;
            mDestinationDescription.CursorIndex    = 0x0;
            mConfirmDestinationDescription.Caption = destination.ConfirmDescription;

            ImageDrawable drawable = mConfirmDestinationImage.Drawable as ImageDrawable;

            if (drawable != null)
            {
                drawable.Image = WorldData.GetConfirmImage(destination.Index);
            }

            mConfirmDestinationImage.Invalidate();
            PopulateGrids();
        }
Exemple #3
0
 public virtual PusherQueue CreatePusherQueue(IDestinationInfo destinationInfo)
 {
     return(new PusherQueue(destinationInfo.Destination, new Action <PusherQueue>(this.QueueReady)));
 }