aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine
diff options
context:
space:
mode:
authorJeff Ames2008-11-30 00:51:40 +0000
committerJeff Ames2008-11-30 00:51:40 +0000
commit077314cdd3b0acdebb2d39eb0c0108814313f8f0 (patch)
tree593de52b685729b35b4f2b05487ef7b15b327eb5 /OpenSim/Region/ScriptEngine
parentExplicitly Dispose() all cmd objects (diff)
downloadopensim-SC_OLD-077314cdd3b0acdebb2d39eb0c0108814313f8f0.zip
opensim-SC_OLD-077314cdd3b0acdebb2d39eb0c0108814313f8f0.tar.gz
opensim-SC_OLD-077314cdd3b0acdebb2d39eb0c0108814313f8f0.tar.bz2
opensim-SC_OLD-077314cdd3b0acdebb2d39eb0c0108814313f8f0.tar.xz
Update svn properties. Add copyright header. Minor formatting cleanup.
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Runtime/ScriptSponsor.cs79
1 files changed, 53 insertions, 26 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/ScriptSponsor.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/ScriptSponsor.cs
index 13c25d7..a2da14e 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/ScriptSponsor.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/ScriptSponsor.cs
@@ -1,26 +1,53 @@
1using System; 1/*
2using System.Collections.Generic; 2 * Copyright (c) Contributors, http://opensimulator.org/
3using System.Runtime.Remoting.Lifetime; 3 * See CONTRIBUTORS.TXT for a full list of copyright holders.
4using System.Text; 4 *
5 5 * Redistribution and use in source and binary forms, with or without
6namespace OpenSim.Region.ScriptEngine.Shared.Api.Runtime 6 * modification, are permitted provided that the following conditions are met:
7{ 7 * * Redistributions of source code must retain the above copyright
8 [Serializable] 8 * notice, this list of conditions and the following disclaimer.
9 public class ScriptSponsor : MarshalByRefObject, ISponsor 9 * * Redistributions in binary form must reproduce the above copyright
10 { 10 * notice, this list of conditions and the following disclaimer in the
11 // In theory: I execute, therefore I am. 11 * documentation and/or other materials provided with the distribution.
12 // If GC collects this class then sponsorship will expire 12 * * Neither the name of the OpenSimulator Project nor the
13 public TimeSpan Renewal(ILease lease) 13 * names of its contributors may be used to endorse or promote products
14 { 14 * derived from this software without specific prior written permission.
15 return TimeSpan.FromMinutes(2); 15 *
16 } 16 * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
17#if DEBUG 17 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 // For tracing GC while debugging 18 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 public static bool GCDummy = false; 19 * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
20 ~ScriptSponsor() 20 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 { 21 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 GCDummy = true; 22 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23 } 23 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24#endif 24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 } 25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26} 26 */
27
28using System;
29using System.Collections.Generic;
30using System.Runtime.Remoting.Lifetime;
31using System.Text;
32
33namespace OpenSim.Region.ScriptEngine.Shared.Api.Runtime
34{
35 [Serializable]
36 public class ScriptSponsor : MarshalByRefObject, ISponsor
37 {
38 // In theory: I execute, therefore I am.
39 // If GC collects this class then sponsorship will expire
40 public TimeSpan Renewal(ILease lease)
41 {
42 return TimeSpan.FromMinutes(2);
43 }
44#if DEBUG
45 // For tracing GC while debugging
46 public static bool GCDummy = false;
47 ~ScriptSponsor()
48 {
49 GCDummy = true;
50 }
51#endif
52 }
53}