示例#1
0
 public User(Guid userId)
 {
     _userId = userId;
     _subscriptions = new SuccessorCollection<Subscription>(
         "Subscribe",
         CreateSubscription,
         "Unsubscribe",
         "Subscription");
     _queuedEpisodes = new SuccessorCollection<Queue>(
         "Queue",
         CreateQueue,
         "Finished",
         "Queue");
 }
示例#2
0
 public virtual void AddSuccessor(GraphNode <T> neighbor, double weight)
 {
     SuccessorCollection.Add(neighbor);
     Costs.Add(neighbor, weight);
 }