aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api/Runtime
diff options
context:
space:
mode:
authorMelanie Thielker2008-07-11 17:52:39 +0000
committerMelanie Thielker2008-07-11 17:52:39 +0000
commit53461fad2ce4f191404abb9f26e41cb3217daa66 (patch)
treecc59a648797c83be441ae30c715dc213245d104f /OpenSim/Region/ScriptEngine/Shared/Api/Runtime
parentExperimental physics optimization: prims with all 3 dimensions less than 0.2 ... (diff)
downloadopensim-SC-53461fad2ce4f191404abb9f26e41cb3217daa66.zip
opensim-SC-53461fad2ce4f191404abb9f26e41cb3217daa66.tar.gz
opensim-SC-53461fad2ce4f191404abb9f26e41cb3217daa66.tar.bz2
opensim-SC-53461fad2ce4f191404abb9f26e41cb3217daa66.tar.xz
Patch #9140 (Mantis #1683)
Add LifetimeService overrides to all MarshalByRef derived classes to prevent the remoting interfaces from expiring.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Runtime')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Runtime/ScriptBase.cs14
1 files changed, 14 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/ScriptBase.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/ScriptBase.cs
index c12b1f8..5b32cde 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/ScriptBase.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/ScriptBase.cs
@@ -40,6 +40,20 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
40 { 40 {
41 private Dictionary<string,MethodInfo> inits = new Dictionary<string,MethodInfo>(); 41 private Dictionary<string,MethodInfo> inits = new Dictionary<string,MethodInfo>();
42 42
43 //
44 // Never expire this object
45 //
46 public override Object InitializeLifetimeService()
47 {
48 ILease lease = (ILease)base.InitializeLifetimeService();
49
50 if (lease.CurrentState == LeaseState.Initial)
51 {
52 lease.InitialLeaseTime = TimeSpan.Zero;
53 }
54 return lease;
55 }
56
43 public ScriptBaseClass() 57 public ScriptBaseClass()
44 { 58 {
45 MethodInfo[] myArrayMethodInfo = GetType().GetMethods(BindingFlags.Public|BindingFlags.Instance); 59 MethodInfo[] myArrayMethodInfo = GetType().GetMethods(BindingFlags.Public|BindingFlags.Instance);