LIBOMV-686 Implements new event patterns based on the Microsoft Framework Design Guidelines in GroupManager
* BREAKING CHANGE * this is a major shift in the way events are internally handled. git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@3162 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
@@ -29,7 +29,7 @@ namespace OpenMetaverse.TestClient.Commands
|
||||
waitQuery.Reset();
|
||||
|
||||
Client.Avatars.OnAvatarNames += Avatars_OnAvatarNames;
|
||||
Client.Groups.OnGroupProfile += Groups_OnGroupProfile;
|
||||
Client.Groups.GroupProfile += Groups_OnGroupProfile;
|
||||
Client.Avatars.RequestAvatarName(key);
|
||||
|
||||
Client.Groups.RequestGroupProfile(key);
|
||||
@@ -39,13 +39,13 @@ namespace OpenMetaverse.TestClient.Commands
|
||||
}
|
||||
|
||||
Client.Avatars.OnAvatarNames -= Avatars_OnAvatarNames;
|
||||
Client.Groups.OnGroupProfile -= Groups_OnGroupProfile;
|
||||
Client.Groups.GroupProfile -= Groups_OnGroupProfile;
|
||||
return result.ToString();
|
||||
}
|
||||
|
||||
void Groups_OnGroupProfile(Group group)
|
||||
void Groups_OnGroupProfile(object sender, GroupProfileEventArgs e)
|
||||
{
|
||||
result.AppendLine("Group: " + group.Name + " " + group.ID);
|
||||
result.AppendLine("Group: " + e.Group.Name + " " + e.Group.ID);
|
||||
waitQuery.Set();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user