Exemplo n.º 1
0
 /// <summary>
 /// </summary>
 /// <param name="message">
 /// </param>
 public void HandlePlayfieldMessage(InternalMessage message)
 {
 }
Exemplo n.º 2
0
        /// <summary>
        /// </summary>
        /// <param name="triggerTime">
        /// </param>
        /// <param name="obj">
        /// </param>
        public void Add(DateTime triggerTime, InternalMessage obj)
        {
            if (triggerTime <= DateTime.UtcNow)
            {
                this.playfieldBus.Publish(obj);
                return;
            }

            this.TimerList.Add(new PlayfieldTimedListEntry(triggerTime, obj));
            this.stillSorted = false;
        }
 /// <summary>
 /// </summary>
 /// <param name="sender">
 /// </param>
 /// <param name="message">
 /// </param>
 public PFMessageReceivedEvent(object sender, InternalMessage message)
 {
     this.sender = sender;
     this.message = message;
 }
Exemplo n.º 4
0
 /// <summary>
 /// </summary>
 /// <param name="milliseconds">
 /// </param>
 /// <param name="obj">
 /// </param>
 public void Add(int milliseconds, InternalMessage obj)
 {
     this.TimerList.Add(
         new PlayfieldTimedListEntry(DateTime.UtcNow + TimeSpan.FromMilliseconds(milliseconds), obj));
 }