示例#1
0
 private Publisher()
 {
     if (FeedDl == null)
     {
         FeedDl = FeedDL.Instance;
     }
     readers = new Dictionary <int, IFeedQueue>();
     EstablishQueues();
 }
示例#2
0
 public static void CleanPublisher()
 {
     FeedDl    = null;
     _instance = null;
 }
示例#3
0
 public FeedQueue(IFeedDL feedDL, int userId)
 {
     _feedDL   = feedDL;
     observers = new List <IObserver>();
     queue     = new List <Notification>(_feedDL.GetUnreadNotifications(userId));
 }