From dc2acaa8a887e986644480237910308701c84c1a Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Wed, 16 May 2007 21:10:45 +0000 Subject: Let stuff be broken! --- OpenGrid.Framework.Data.DB4o/DB4oUserData.cs | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'OpenGrid.Framework.Data.DB4o') diff --git a/OpenGrid.Framework.Data.DB4o/DB4oUserData.cs b/OpenGrid.Framework.Data.DB4o/DB4oUserData.cs index c21d7e2..7dd4c51 100644 --- a/OpenGrid.Framework.Data.DB4o/DB4oUserData.cs +++ b/OpenGrid.Framework.Data.DB4o/DB4oUserData.cs @@ -8,7 +8,12 @@ namespace OpenGrid.Framework.Data.DB4o { public class DB4oUserData : IUserData { - DB4oUserManager manager = new DB4oUserManager("userprofiles.yap"); + DB4oUserManager manager; + + public void Initialise() + { + manager = new DB4oUserManager("userprofiles.yap"); + } public UserProfileData getUserByUUID(LLUUID uuid) { @@ -33,7 +38,7 @@ namespace OpenGrid.Framework.Data.DB4o } public UserAgentData getAgentByUUID(LLUUID uuid) - { + { try { return getUserByUUID(uuid).currentAgent; @@ -71,5 +76,15 @@ namespace OpenGrid.Framework.Data.DB4o return true; } + + public string getName() + { + return "DB4o Userdata"; + } + + public string getVersion() + { + return "0.1"; + } } } -- cgit v1.1