aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenGrid.Framework.Data.DB4o/DB4oGridData.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenGrid.Framework.Data.DB4o/DB4oGridData.cs')
-rw-r--r--OpenGrid.Framework.Data.DB4o/DB4oGridData.cs22
1 files changed, 11 insertions, 11 deletions
diff --git a/OpenGrid.Framework.Data.DB4o/DB4oGridData.cs b/OpenGrid.Framework.Data.DB4o/DB4oGridData.cs
index c853b50..caf7eb0 100644
--- a/OpenGrid.Framework.Data.DB4o/DB4oGridData.cs
+++ b/OpenGrid.Framework.Data.DB4o/DB4oGridData.cs
@@ -9,20 +9,20 @@ namespace OpenGrid.Framework.Data.DB4o
9{ 9{
10 class DB4oGridData : IGridData 10 class DB4oGridData : IGridData
11 { 11 {
12 DB4oManager manager; 12 DB4oGridManager manager;
13 13
14 public void Initialise() { 14 public void Initialise() {
15 manager = new DB4oManager("gridserver.yap"); 15 manager = new DB4oGridManager("gridserver.yap");
16 } 16 }
17 17
18 public SimProfileData GetProfileByHandle(ulong handle) { 18 public SimProfileData GetProfileByHandle(ulong handle) {
19 lock (manager.profiles) 19 lock (manager.simProfiles)
20 { 20 {
21 foreach (LLUUID UUID in manager.profiles.Keys) 21 foreach (LLUUID UUID in manager.simProfiles.Keys)
22 { 22 {
23 if (manager.profiles[UUID].regionHandle == handle) 23 if (manager.simProfiles[UUID].regionHandle == handle)
24 { 24 {
25 return manager.profiles[UUID]; 25 return manager.simProfiles[UUID];
26 } 26 }
27 } 27 }
28 } 28 }
@@ -31,17 +31,17 @@ namespace OpenGrid.Framework.Data.DB4o
31 31
32 public SimProfileData GetProfileByLLUUID(LLUUID uuid) 32 public SimProfileData GetProfileByLLUUID(LLUUID uuid)
33 { 33 {
34 lock (manager.profiles) 34 lock (manager.simProfiles)
35 { 35 {
36 if (manager.profiles.ContainsKey(uuid)) 36 if (manager.simProfiles.ContainsKey(uuid))
37 return manager.profiles[uuid]; 37 return manager.simProfiles[uuid];
38 } 38 }
39 throw new Exception("Unable to find profile with UUID (" + uuid.ToStringHyphenated() + ")"); 39 throw new Exception("Unable to find profile with UUID (" + uuid.ToStringHyphenated() + ")");
40 } 40 }
41 41
42 public DataResponse AddProfile(SimProfileData profile) 42 public DataResponse AddProfile(SimProfileData profile)
43 { 43 {
44 lock (manager.profiles) 44 lock (manager.simProfiles)
45 { 45 {
46 if (manager.AddRow(profile)) 46 if (manager.AddRow(profile))
47 { 47 {
@@ -55,7 +55,7 @@ namespace OpenGrid.Framework.Data.DB4o
55 } 55 }
56 56
57 public bool AuthenticateSim(LLUUID uuid, ulong handle, string key) { 57 public bool AuthenticateSim(LLUUID uuid, ulong handle, string key) {
58 if (manager.profiles[uuid].regionRecvKey == key) 58 if (manager.simProfiles[uuid].regionRecvKey == key)
59 return true; 59 return true;
60 return false; 60 return false;
61 } 61 }