diff options
author | lbsa71 | 2007-10-30 09:05:31 +0000 |
---|---|---|
committer | lbsa71 | 2007-10-30 09:05:31 +0000 |
commit | 67e12b95ea7b68f4904a7484d77ecfd787d16d0c (patch) | |
tree | 20b00d24c8a7617017960432ec044852e3ad5fa9 /OpenSim/Framework/Data.DB4o/DB4oGridData.cs | |
parent | * Deleted .user file (diff) | |
download | opensim-SC-67e12b95ea7b68f4904a7484d77ecfd787d16d0c.zip opensim-SC-67e12b95ea7b68f4904a7484d77ecfd787d16d0c.tar.gz opensim-SC-67e12b95ea7b68f4904a7484d77ecfd787d16d0c.tar.bz2 opensim-SC-67e12b95ea7b68f4904a7484d77ecfd787d16d0c.tar.xz |
* Optimized usings
* Shortened type references
* Removed redundant 'this' qualifier
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Framework/Data.DB4o/DB4oGridData.cs | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/OpenSim/Framework/Data.DB4o/DB4oGridData.cs b/OpenSim/Framework/Data.DB4o/DB4oGridData.cs index bc7225a..a96d9bd 100644 --- a/OpenSim/Framework/Data.DB4o/DB4oGridData.cs +++ b/OpenSim/Framework/Data.DB4o/DB4oGridData.cs | |||
@@ -34,18 +34,19 @@ namespace OpenSim.Framework.Data.DB4o | |||
34 | /// <summary> | 34 | /// <summary> |
35 | /// A grid server storage mechanism employing the DB4o database system | 35 | /// A grid server storage mechanism employing the DB4o database system |
36 | /// </summary> | 36 | /// </summary> |
37 | class DB4oGridData : IGridData | 37 | internal class DB4oGridData : IGridData |
38 | { | 38 | { |
39 | /// <summary> | 39 | /// <summary> |
40 | /// The database manager object | 40 | /// The database manager object |
41 | /// </summary> | 41 | /// </summary> |
42 | DB4oGridManager manager; | 42 | private DB4oGridManager manager; |
43 | 43 | ||
44 | /// <summary> | 44 | /// <summary> |
45 | /// Called when the plugin is first loaded (as constructors are not called) | 45 | /// Called when the plugin is first loaded (as constructors are not called) |
46 | /// </summary> | 46 | /// </summary> |
47 | public void Initialise() { | 47 | public void Initialise() |
48 | manager = new DB4oGridManager("gridserver.yap"); | 48 | { |
49 | manager = new DB4oGridManager("gridserver.yap"); | ||
49 | } | 50 | } |
50 | 51 | ||
51 | /// <summary> | 52 | /// <summary> |
@@ -93,7 +94,8 @@ namespace OpenSim.Framework.Data.DB4o | |||
93 | if (manager.simProfiles.ContainsKey(uuid)) | 94 | if (manager.simProfiles.ContainsKey(uuid)) |
94 | return manager.simProfiles[uuid]; | 95 | return manager.simProfiles[uuid]; |
95 | } | 96 | } |
96 | throw new Exception("Unable to find profile with UUID (" + uuid.ToStringHyphenated() + "). Total Registered Regions: " + manager.simProfiles.Count); | 97 | throw new Exception("Unable to find profile with UUID (" + uuid.ToStringHyphenated() + |
98 | "). Total Registered Regions: " + manager.simProfiles.Count); | ||
97 | } | 99 | } |
98 | 100 | ||
99 | /// <summary> | 101 | /// <summary> |
@@ -123,7 +125,8 @@ namespace OpenSim.Framework.Data.DB4o | |||
123 | /// <param name="handle">The location the region is logging into (unused in Db4o)</param> | 125 | /// <param name="handle">The location the region is logging into (unused in Db4o)</param> |
124 | /// <param name="key">The shared secret</param> | 126 | /// <param name="key">The shared secret</param> |
125 | /// <returns>Authenticated?</returns> | 127 | /// <returns>Authenticated?</returns> |
126 | public bool AuthenticateSim(LLUUID uuid, ulong handle, string key) { | 128 | public bool AuthenticateSim(LLUUID uuid, ulong handle, string key) |
129 | { | ||
127 | if (manager.simProfiles[uuid].regionRecvKey == key) | 130 | if (manager.simProfiles[uuid].regionRecvKey == key) |
128 | return true; | 131 | return true; |
129 | return false; | 132 | return false; |
@@ -160,4 +163,4 @@ namespace OpenSim.Framework.Data.DB4o | |||
160 | return null; | 163 | return null; |
161 | } | 164 | } |
162 | } | 165 | } |
163 | } | 166 | } \ No newline at end of file |