See if getting the registering JsonReadNotecard with MethodInfo works around an apparent issue with registering methods with more than 5 parameters on mono 2.4.3

user_profiles
Justin Clark-Casey (justincc) 2013-01-25 03:02:08 +00:00
parent 4f52acaa83
commit 614d4eda3e
1 changed files with 5 additions and 2 deletions

View File

@ -168,7 +168,10 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore
m_comms.RegisterScriptInvocation(this,"JsonCreateStore"); m_comms.RegisterScriptInvocation(this,"JsonCreateStore");
m_comms.RegisterScriptInvocation(this,"JsonDestroyStore"); m_comms.RegisterScriptInvocation(this,"JsonDestroyStore");
m_comms.RegisterScriptInvocation(this,"JsonReadNotecard"); m_comms.RegisterScriptInvocation(
this, this.GetType().GetMethod(
"JsonReadNotecard", BindingFlags.NonPublic | BindingFlags.Instance, null, new Type[] { typeof(UUID), typeof(UUID), typeof(UUID), typeof(string), typeof(UUID)}, null));
m_comms.RegisterScriptInvocation(this,"JsonWriteNotecard"); m_comms.RegisterScriptInvocation(this,"JsonWriteNotecard");
m_comms.RegisterScriptInvocation(this,"JsonTestPath"); m_comms.RegisterScriptInvocation(this,"JsonTestPath");
@ -191,7 +194,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.JsonStore
catch (Exception e) catch (Exception e)
{ {
// See http://opensimulator.org/mantis/view.php?id=5971 for more information // See http://opensimulator.org/mantis/view.php?id=5971 for more information
m_log.WarnFormat("[JsonStroreScripts] script method registration failed; {0}",e.Message); m_log.WarnFormat("[JsonStoreScripts]: script method registration failed; {0}", e.Message);
m_enabled = false; m_enabled = false;
} }
} }