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); }
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(); }
public virtual PusherQueue CreatePusherQueue(IDestinationInfo destinationInfo) { return(new PusherQueue(destinationInfo.Destination, new Action <PusherQueue>(this.QueueReady))); }