#if FRAMEWORK20 using System; using System.Collections.Generic; using System.Text; namespace DevComponents.Schedule.Model { internal class NotificationRequest { #region Internal Implementation /// /// Initializes a new instance of the NotificationRequest class. /// /// /// public NotificationRequest(DateTime notificationTime, NotificationServerEventHandler notificationHandler) { _NotificationTime = notificationTime; _NotificationHandler = notificationHandler; _ThreadId = System.Threading.Thread.CurrentThread.ManagedThreadId; } private int _ThreadId; public int ThreadId { get { return _ThreadId; } } private DateTime _NotificationTime = DateTime.MinValue; /// /// Gets or sets requested notification time. /// public DateTime NotificationTime { get { return _NotificationTime; } set { _NotificationTime = value; } } private NotificationServerEventHandler _NotificationHandler = null; /// /// Gets the callback handler for notification when notification time is reached. /// public NotificationServerEventHandler NotificationHandler { get { return _NotificationHandler; } } #endregion } } #endif