protected override void ExecuteImpl() { GroupInfo gi = GroupInfoManager.FindGroup(m_groupKey); UserInfo user = UserInfoManager.FindUser(m_remoteIP); Workbench.GroupAddUser(gi, user); }
protected override void ExecuteImpl() { if (string.IsNullOrEmpty(m_groupKey)) { return; } UserInfo usr = UserInfoManager.FindUser(m_remoteIP); if (usr == null) { Workbench.AddClient(m_username, m_remoteIP); } GroupInfo grp = GroupInfoManager.FindGroup(m_groupKey); if (grp != null) { Workbench.GroupAddUser(grp, usr); OutgoingPackagePool.AddFirst(NetPackageGenerater.AddGroupUser(m_groupKey, m_remoteIP)); } }