diff options
author | lbsa71 | 2007-12-27 21:41:48 +0000 |
---|---|---|
committer | lbsa71 | 2007-12-27 21:41:48 +0000 |
commit | efd90b56b761219af6425b1c7a2cdd3b6ffb4de2 (patch) | |
tree | bf5b897e1e3c13211e3e2fc61d30508b94c928c0 /OpenSim/Grid/UserServer/Main.cs | |
parent | * removed always true if (diff) | |
download | opensim-SC_OLD-efd90b56b761219af6425b1c7a2cdd3b6ffb4de2.zip opensim-SC_OLD-efd90b56b761219af6425b1c7a2cdd3b6ffb4de2.tar.gz opensim-SC_OLD-efd90b56b761219af6425b1c7a2cdd3b6ffb4de2.tar.bz2 opensim-SC_OLD-efd90b56b761219af6425b1c7a2cdd3b6ffb4de2.tar.xz |
* Optimized usings
* shortened references
* Removed redundant 'this'
* Normalized EOF
Diffstat (limited to 'OpenSim/Grid/UserServer/Main.cs')
-rw-r--r-- | OpenSim/Grid/UserServer/Main.cs | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/OpenSim/Grid/UserServer/Main.cs b/OpenSim/Grid/UserServer/Main.cs index 4806e52..6e3ccb7 100644 --- a/OpenSim/Grid/UserServer/Main.cs +++ b/OpenSim/Grid/UserServer/Main.cs | |||
@@ -129,7 +129,8 @@ namespace OpenSim.Grid.UserServer | |||
129 | tempMD5Passwd = Util.Md5Hash(Util.Md5Hash(tempMD5Passwd) + ":" + ""); | 129 | tempMD5Passwd = Util.Md5Hash(Util.Md5Hash(tempMD5Passwd) + ":" + ""); |
130 | 130 | ||
131 | LLUUID userID = m_userManager.AddUserProfile(tempfirstname, templastname, tempMD5Passwd, regX, regY); | 131 | LLUUID userID = m_userManager.AddUserProfile(tempfirstname, templastname, tempMD5Passwd, regX, regY); |
132 | RestObjectPoster.BeginPostObject<Guid>(m_userManager._config.InventoryUrl + "CreateInventory/", userID.UUID); | 132 | RestObjectPoster.BeginPostObject<Guid>(m_userManager._config.InventoryUrl + "CreateInventory/", |
133 | userID.UUID); | ||
133 | m_lastCreatedUser = userID; | 134 | m_lastCreatedUser = userID; |
134 | break; | 135 | break; |
135 | } | 136 | } |
@@ -154,17 +155,23 @@ namespace OpenSim.Grid.UserServer | |||
154 | break; | 155 | break; |
155 | 156 | ||
156 | case "test-inventory": | 157 | case "test-inventory": |
157 | // RestObjectPosterResponse<List<InventoryFolderBase>> requester = new RestObjectPosterResponse<List<InventoryFolderBase>>(); | 158 | // RestObjectPosterResponse<List<InventoryFolderBase>> requester = new RestObjectPosterResponse<List<InventoryFolderBase>>(); |
158 | // requester.ReturnResponseVal = TestResponse; | 159 | // requester.ReturnResponseVal = TestResponse; |
159 | // requester.BeginPostObject<LLUUID>(m_userManager._config.InventoryUrl + "RootFolders/", m_lastCreatedUser); | 160 | // requester.BeginPostObject<LLUUID>(m_userManager._config.InventoryUrl + "RootFolders/", m_lastCreatedUser); |
160 | List<InventoryFolderBase> folders = SynchronousRestObjectPoster.BeginPostObject< LLUUID, List<InventoryFolderBase>>("POST",m_userManager._config.InventoryUrl + "RootFolders/", m_lastCreatedUser); | 161 | List<InventoryFolderBase> folders = |
162 | SynchronousRestObjectPoster.BeginPostObject<LLUUID, List<InventoryFolderBase>>("POST", | ||
163 | m_userManager. | ||
164 | _config. | ||
165 | InventoryUrl + | ||
166 | "RootFolders/", | ||
167 | m_lastCreatedUser); | ||
161 | break; | 168 | break; |
162 | } | 169 | } |
163 | } | 170 | } |
164 | 171 | ||
165 | public void TestResponse(List<InventoryFolderBase> resp) | 172 | public void TestResponse(List<InventoryFolderBase> resp) |
166 | { | 173 | { |
167 | System.Console.WriteLine("response got"); | 174 | Console.WriteLine("response got"); |
168 | } | 175 | } |
169 | 176 | ||
170 | /*private void ConfigDB(IGenericConfig configData) | 177 | /*private void ConfigDB(IGenericConfig configData) |
@@ -194,4 +201,4 @@ namespace OpenSim.Grid.UserServer | |||
194 | { | 201 | { |
195 | } | 202 | } |
196 | } | 203 | } |
197 | } | 204 | } \ No newline at end of file |