Exemplo n.º 1
0
 private void ProcessGroup(IGroupListener listener, Group group)
 {
     if (listener.OnNewGroup(group))
     {
         var list = this.listenersByGroupId[group.Id] = this.listenersByGroupId[group.Id] ?? new List <IGroupListener>();
         list.Add(listener);
         this.groupIdsByListener[listener].Add(group.Id);
         foreach (var e in group.Events)
         {
             listener.Queue.Enqueue(e);
         }
     }
 }
Exemplo n.º 2
0
 private void ProcessGroup(IGroupListener listener, Group group)
 {
     if (listener.OnNewGroup(group))
     {
         List <IGroupListener> list = this.listenerTable[group.Id];
         if (list == null)
         {
             list = new List <IGroupListener>();
             this.listenerTable[group.Id] = list;
         }
         this.groupByListenerTable[listener].Add(group.Id);
         list.Add(listener);
         foreach (GroupEvent current in group.Events)
         {
             listener.Queue.Enqueue(current);
         }
     }
 }
Exemplo n.º 3
0
		private void ProcessGroup(IGroupListener listener, Group group)
		{
			if (listener.OnNewGroup(group))
			{
				List<IGroupListener> list = this.listenerTable[group.Id];
				if (list == null)
				{
					list = new List<IGroupListener>();
					this.listenerTable[group.Id] = list;
				}
				this.groupByListenerTable[listener].Add(group.Id);
				list.Add(listener);
				foreach (GroupEvent current in group.Events)
				{
					listener.Queue.Enqueue(current);
				}
			}
		}
Exemplo n.º 4
0
 private void ProcessGroup(IGroupListener listener, Group group)
 {
     if (listener.OnNewGroup(group))
     {
         var list = this.listenersByGroupId[group.Id] = this.listenersByGroupId[group.Id] ?? new List<IGroupListener>();
         list.Add(listener);
         this.groupIdsByListener[listener].Add(group.Id);
         foreach (var e in group.Events)
             listener.Queue.Enqueue(e);
     }
 }