diff options
Diffstat (limited to 'OpenSim/Region/CoreModules')
2 files changed, 18 insertions, 1 deletions
diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Presence/LocalPresenceServiceConnector.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Presence/LocalPresenceServiceConnector.cs index d78daf9..c402a3f 100644 --- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Presence/LocalPresenceServiceConnector.cs +++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Presence/LocalPresenceServiceConnector.cs | |||
@@ -47,7 +47,11 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Presence | |||
47 | private bool m_Enabled = false; | 47 | private bool m_Enabled = false; |
48 | 48 | ||
49 | private PresenceDetector m_PresenceDetector; | 49 | private PresenceDetector m_PresenceDetector; |
50 | private IPresenceService m_PresenceService; | 50 | |
51 | /// <summary> | ||
52 | /// Underlying presence service. Do not use directly. | ||
53 | /// </summary> | ||
54 | public IPresenceService m_PresenceService; | ||
51 | 55 | ||
52 | public LocalPresenceServicesConnector() | 56 | public LocalPresenceServicesConnector() |
53 | { | 57 | { |
diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Presence/Tests/PresenceConnectorsTests.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Presence/Tests/PresenceConnectorsTests.cs index ca42461..292ff8e 100644 --- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Presence/Tests/PresenceConnectorsTests.cs +++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Presence/Tests/PresenceConnectorsTests.cs | |||
@@ -59,6 +59,9 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Presence.Tests | |||
59 | config.Configs["PresenceService"].Set("StorageProvider", "OpenSim.Data.Null.dll"); | 59 | config.Configs["PresenceService"].Set("StorageProvider", "OpenSim.Data.Null.dll"); |
60 | 60 | ||
61 | m_LocalConnector = new LocalPresenceServicesConnector(config); | 61 | m_LocalConnector = new LocalPresenceServicesConnector(config); |
62 | |||
63 | // Let's stick in a test presence | ||
64 | m_LocalConnector.m_PresenceService.LoginAgent(UUID.Zero.ToString(), UUID.Zero, UUID.Zero); | ||
62 | } | 65 | } |
63 | 66 | ||
64 | /// <summary> | 67 | /// <summary> |
@@ -68,6 +71,16 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Presence.Tests | |||
68 | public void TestPresenceV0_1() | 71 | public void TestPresenceV0_1() |
69 | { | 72 | { |
70 | SetUp(); | 73 | SetUp(); |
74 | |||
75 | // Let's stick in a test presence | ||
76 | /* | ||
77 | PresenceData p = new PresenceData(); | ||
78 | p.SessionID = UUID.Zero; | ||
79 | p.UserID = UUID.Zero.ToString(); | ||
80 | p.Data = new Dictionary<string, string>(); | ||
81 | p.Data["Online"] = true.ToString(); | ||
82 | m_presenceData.Add(UUID.Zero, p); | ||
83 | */ | ||
71 | 84 | ||
72 | string user1 = UUID.Zero.ToString(); | 85 | string user1 = UUID.Zero.ToString(); |
73 | UUID session1 = UUID.Zero; | 86 | UUID session1 = UUID.Zero; |