Beispiel #1
0
 /// <summary>
 /// </summary>
 /// <param name="message">
 /// </param>
 public void HandlePlayfieldMessage(InternalMessage message)
 {
 }
        /// <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;
 }
 /// <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));
 }