mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 20:05:33 +08:00
* minor: reduce coupling by passing in only session id to CachedUserInfo
This commit is contained in:
@@ -101,11 +101,19 @@ namespace OpenSim.Framework.Communications.Cache
|
||||
m_userProfile = userProfile;
|
||||
}
|
||||
|
||||
public CachedUserInfo(CommunicationsManager commsManager, UserProfileData userProfile, IClientAPI remoteClient)
|
||||
/// <summary>
|
||||
/// Constructor
|
||||
/// </summary>
|
||||
/// <param name="commsManager"></param>
|
||||
/// <param name="userProfile"></param>
|
||||
/// <param name="sessionId">
|
||||
/// Session id of the user. This is used in subsequent security checks.
|
||||
/// </param>
|
||||
public CachedUserInfo(CommunicationsManager commsManager, UserProfileData userProfile, LLUUID sessionId)
|
||||
{
|
||||
m_commsManager = commsManager;
|
||||
m_userProfile = userProfile;
|
||||
m_session_id = remoteClient.SessionId;
|
||||
m_session_id = sessionId;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user