示例#1
0
		private void Dispatcher_NewGroupUpdate(object sender, GroupUpdateEventAgrs args)
		{
			bool flag = false;
			try
			{
				Monitor.Enter(this, ref flag);
				if (args.GroupUpdate.GroupId != -1)
				{
					List<IGroupListener> list = this.listenerTable[args.GroupUpdate.GroupId];
					if (list != null)
					{
						foreach (IGroupListener current in list)
						{
							current.OnNewGroupUpdate(args.GroupUpdate);
						}
					}
				}
			}
			finally
			{
				if (flag)
				{
					Monitor.Exit(this);
				}
			}
		}
示例#2
0
        private void Dispatcher_NewGroupUpdate(object sender, GroupUpdateEventAgrs args)
        {
            bool flag = false;

            try
            {
                Monitor.Enter(this, ref flag);
                if (args.GroupUpdate.GroupId != -1)
                {
                    List <IGroupListener> list = this.listenerTable[args.GroupUpdate.GroupId];
                    if (list != null)
                    {
                        foreach (IGroupListener current in list)
                        {
                            current.OnNewGroupUpdate(args.GroupUpdate);
                        }
                    }
                }
            }
            finally
            {
                if (flag)
                {
                    Monitor.Exit(this);
                }
            }
        }