diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Runtime/ScriptSponsor.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Runtime/ScriptSponsor.cs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/ScriptSponsor.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/ScriptSponsor.cs new file mode 100644 index 0000000..87401bb --- /dev/null +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/ScriptSponsor.cs | |||
@@ -0,0 +1,17 @@ | |||
1 | using System; | ||
2 | using System.Collections.Generic; | ||
3 | using System.Runtime.Remoting.Lifetime; | ||
4 | using System.Text; | ||
5 | |||
6 | namespace OpenSim.Region.ScriptEngine.Shared.Api.Runtime | ||
7 | { | ||
8 | public class ScriptSponsor: ISponsor | ||
9 | { | ||
10 | // In theory: I execute, therefore I am. | ||
11 | // If GC collects this class then sponsorship will expire | ||
12 | public TimeSpan Renewal(ILease lease) | ||
13 | { | ||
14 | return TimeSpan.FromMinutes(2); | ||
15 | } | ||
16 | } | ||
17 | } | ||